Skip to content

Commit

Permalink
Fix GH action compile with GCC on ARM, '-m64' seems to be unsupported.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasfertig committed Jul 16, 2024
1 parent b24ecc6 commit 6c3bba7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/runTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def testCompile(tmpFileName, f, args, fileName, cppStd):
cmd = [args['cxx'], cppStd, '-D__cxa_guard_acquire(x)=true', '-D__cxa_guard_release(x)', '-D__cxa_guard_abort(x)', '-I', os.getcwd()]

if os.name != 'nt':
cmd.append('-m64')
arch = platform.architecture()[0]
if (arch != '64bit') or ((arch == '64bit') and (sys.platform == 'darwin')):
cmd.append('-m64')
else:
cmd.extend(['/nologo', '/EHsc', '/IGNORE:C4335']) # C4335: mac file format detected. EHsc assume only C++ functions throw exceptions.

Expand Down

0 comments on commit 6c3bba7

Please sign in to comment.