summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/main/TARGETS6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildtool/main/TARGETS b/src/buildtool/main/TARGETS
index 6582137a..3151d9ae 100644
--- a/src/buildtool/main/TARGETS
+++ b/src/buildtool/main/TARGETS
@@ -1,5 +1,6 @@
{ "just":
{ "type": ["@", "rules", "CC", "binary"]
+ , "arguments_config": ["BUILD_STATIC_BINARY"]
, "name": ["just"]
, "srcs": ["main.cpp"]
, "private-hdrs": ["main.hpp"]
@@ -18,5 +19,10 @@
, ["src/utils/cpp", "json"]
]
, "stage": ["src", "buildtool", "main"]
+ , "link external":
+ { "type": "if"
+ , "cond": {"type": "var", "name": "BUILD_STATIC_BINARY"}
+ , "then": ["-static"]
+ }
}
}