Skip to content

Commit

Permalink
test scons pass X86 correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Jun 11, 2024
1 parent 94e8292 commit 0db1557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import subprocess

Import("env platform party_classes common_sources")
arch_short = '64' if (env['bits'] == '64') else '86'

# Add path to scons
env.Append(CPPPATH=['./deps/Catch2/single_include'])
Expand All @@ -11,7 +12,7 @@ test_sources = Glob("""*.cpp""") + Split("""
""")

if str(platform) == "win32" and 'msvc' in env["TOOLS"]:
test = env.Program("#build/bin/boe_test", party_classes + common_sources + test_sources, LINKFLAGS=f'/nologo /SUBSYSTEM:CONSOLE /MACHINE:X{env["bits"]}')
test = env.Program("#build/bin/boe_test", party_classes + common_sources + test_sources, LINKFLAGS=f'/nologo /SUBSYSTEM:CONSOLE /MACHINE:X{arch_short}')
else:
test = env.Program("#build/bin/boe_test", test_sources + party_classes + common_sources)

Expand Down

0 comments on commit 0db1557

Please sign in to comment.