blob: bcea389a86418d7c52949671787c048e8a118504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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()
|