diff options
Diffstat (limited to 'src/buildtool/main/TARGETS')
-rw-r--r-- | src/buildtool/main/TARGETS | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/buildtool/main/TARGETS b/src/buildtool/main/TARGETS index 68197a89..52a92521 100644 --- a/src/buildtool/main/TARGETS +++ b/src/buildtool/main/TARGETS @@ -1,6 +1,6 @@ { "just": { "type": ["@", "rules", "CC", "binary"] - , "arguments_config": ["BUILD_STATIC_BINARY"] + , "arguments_config": ["BUILD_STATIC_BINARY", "FINAL_LDFLAGS"] , "name": ["just"] , "srcs": ["main.cpp"] , "private-deps": @@ -31,9 +31,15 @@ ] , "stage": ["src", "buildtool", "main"] , "private-ldflags": - { "type": "if" - , "cond": {"type": "var", "name": "BUILD_STATIC_BINARY"} - , "then": ["-static"] + { "type": "++" + , "$1": + [ ["-Wl,-z,stack-size=8388608"] + , { "type": "if" + , "cond": {"type": "var", "name": "BUILD_STATIC_BINARY"} + , "then": ["-static"] + } + , {"type": "var", "name": "FINAL_LDFLAGS", "default": []} + ] } } , "describe": |