Skip to content

Commit

Permalink
возможность выбрать x32 компилятор
Browse files Browse the repository at this point in the history
  • Loading branch information
HPW-dev committed Oct 3, 2024
1 parent 151b9ca commit 1f85b97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
"command": "python",
"args": ["script/build-game-debug.py"]
},
{
"label": "build game x32 (debug)",
"type": "shell",
"command": "python",
"args": ["script/build-game-debug-x32.py"]
},
{
"label": "build game (fast)",
"type": "shell",
Expand Down
5 changes: 4 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ def parse_args():
hpw_config.build_script = ARGUMENTS.get('script', 'test/graphic/SConscript')
assert hpw_config.build_script, 'path to build script needed'
_architecture = architecture()
hpw_config.bitness = Bitness.x64 if _architecture[0] == '64bit' else Bitness.x32
hpw_config.system = System.linux if _architecture[1] == 'ELF' else System.windows
match ARGUMENTS.get('bitness', 'auto').lower():
case 'x32': hpw_config.bitness = Bitness.x32
case 'x64': hpw_config.bitness = Bitness.x64
case 'auto': hpw_config.bitness = Bitness.x64 if _architecture[0] == '64bit' else Bitness.x32
match ARGUMENTS.get('host', 'glfw3').lower():
case 'glfw3': hpw_config.host = Host.glfw3
case 'asci': hpw_config.host = Host.asci
Expand Down

0 comments on commit 1f85b97

Please sign in to comment.