summaryrefslogtreecommitdiff
path: root/dev-libs/hiprt/files/hiprt-2.5-fail-on-errors.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/hiprt/files/hiprt-2.5-fail-on-errors.patch')
-rw-r--r--dev-libs/hiprt/files/hiprt-2.5-fail-on-errors.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/hiprt/files/hiprt-2.5-fail-on-errors.patch b/dev-libs/hiprt/files/hiprt-2.5-fail-on-errors.patch
new file mode 100644
index 000000000000..bcea389a8641
--- /dev/null
+++ b/dev-libs/hiprt/files/hiprt-2.5-fail-on-errors.patch
@@ -0,0 +1,34 @@
+--- a/scripts/bitcodes/compile.py
++++ b/scripts/bitcodes/compile.py
+@@ -58,8 +58,10 @@ def compileScript(cmd, dst):
+ return_code = subprocess.call(cmd, shell=True)
+ if return_code != 0:
+ print(errorMessageHeader + ' executing command: ' + cmd)
++ sys.exit(1)
+ elif not os.path.exists(dst):
+ print(errorMessageHeader + ' The file ' + dst + ' does not exist.')
++ sys.exit(1)
+ else:
+ print('Compilation SUCCEEDED.')
+ sys.stdout.flush()
+@@ -84,6 +86,7 @@ def compileAmd():
+ return_code = subprocess.call(cmd, shell=True)
+ if return_code != 0:
+ print(errorMessageHeader + ' executing command: ' + cmd)
++ sys.exit(1)
+
+ result = subprocess.check_output(cmd, shell=True)
+ hip_sdk_version = result.decode('utf-8')
+--- a/scripts/bitcodes/precompile_bitcode.py
++++ b/scripts/bitcodes/precompile_bitcode.py
+@@ -60,8 +60,10 @@ def compileScript(msg, cmd, dst):
+ return_code = subprocess.call(cmd, shell=True)
+ if return_code != 0:
+ print(errorMessageHeader + ' executing command: ' + cmd)
++ sys.exit(1)
+ elif not os.path.exists(dst):
+ print(errorMessageHeader + ' The file ' + dst + ' does not exist.')
++ sys.exit(1)
+ else:
+ print('Compilation SUCCEEDED.')
+ sys.stdout.flush()