diff options
Diffstat (limited to 'src/other_tools')
-rw-r--r-- | src/other_tools/just_mr/TARGETS | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/other_tools/just_mr/TARGETS b/src/other_tools/just_mr/TARGETS index 85b86f53..02876feb 100644 --- a/src/other_tools/just_mr/TARGETS +++ b/src/other_tools/just_mr/TARGETS @@ -1,6 +1,6 @@ { "just-mr": { "type": ["@", "rules", "CC", "binary"] - , "arguments_config": ["BUILD_STATIC_BINARY"] + , "arguments_config": ["BUILD_STATIC_BINARY", "FINAL_LDFLAGS"] , "name": ["just-mr"] , "srcs": ["main.cpp"] , "private-deps": @@ -22,9 +22,15 @@ ] , "stage": ["src", "other_tools", "just_mr"] , "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": []} + ] } } , "utils": |