input system rework
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#!/bin/env python3
|
||||
|
||||
from subprocess import getoutput, run
|
||||
from os import getcwd
|
||||
from os.path import expandvars
|
||||
from pathlib import Path
|
||||
from sys import argv
|
||||
@ -22,6 +23,7 @@ cmake += ["-B", "build"]
|
||||
# TODO: have it --fast instead, where separate --no-debug would mean stripping the debug info
|
||||
if "--release" in argv:
|
||||
cmake += ["-DCMAKE_BUILD_TYPE=Release"]
|
||||
cmake += [f"-DTWN_OUT_DIR={getcwd()}"]
|
||||
# pass arbitrary arguments over
|
||||
if "--" in argv:
|
||||
cmake += argv[argv.index("--")+1:]
|
||||
|
Reference in New Issue
Block a user