Fixes for relative vs absolute file paths when building (#193)
The output binary is saved alongside the makefile initially, and moved after the fact. This was done to account for Windows and cross-drive issues due to temp filesystems. Because we are saving alongside the makefile, we can just use a relative path, ie the basename of the engine binary, to avoid possible issues in some engine build scripts. Also, check process exitcode instead of just checking for the binary when building Also, pretty-print the compiler error, even though it is sent to the server
This commit is contained in:
1 parent
fc68330d95
commit
b54719ee77
2 files changed
+12
-1
No files matched your search
@@ -1061,6 +1061,12 @@ def download_engine(config, branch, net_path):
|
||||
engine, net_path, branch_name, source, make_path, out_path, compiler)
|
||||
|
||||
except OpenBenchBuildFailedException as error:
|
||||
|
||||
print ('Failed to build %s-%s...\n\nCompiler Output:' % (engine, branch_name))
|
||||
for line in error.logs.split('\n'):
|
||||
print ('> %s' % (line))
|
||||
print ()
|
||||
|
||||
ServerReporter.report_build_fail(config, branch, error.logs)
|
||||
raise
|
||||
|
||||
|
||||
Reference in new issue
Block a user