We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Makefile
1 parent 74be327 commit 899297dCopy full SHA for 899297d
justfile
@@ -13,7 +13,8 @@
13
# just debug
14
# just test
15
#
16
-# just DEBUG=1 # 编译出 debug 版
+# just STATIC=1 # 静态链接
17
+# just DEBUG=1 # 编译出 debug 版
18
# --------------------------------------------------------------
19
20
set windows-shell := ['cmd', '/c']
@@ -49,11 +50,13 @@ Target-Name := if DEBUG != '0' {
49
50
CI := '0'
51
CI_ARTIFACT_NAME := 'chsrc'
52
53
+STATIC := '0'
54
+
55
# 在 GitHub Actions 时的 Linux 环境下,just CI=1 时触发
-CFLAGS_static := if os() == 'linux' {
- if CI == '0' {
- "-static"
56
- } else {''}
+CFLAGS_static := if STATIC == '1' {
57
+ "-static"
58
+} else if os() == 'linux' {
59
+ if CI == '1' {"-static"} else {''}
60
} else {''}
61
62
0 commit comments