mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-13 10:02:46 +08:00
Fix and sync with Makefile
This commit is contained in:
parent
74be327274
commit
899297de22
9
justfile
9
justfile
@ -13,6 +13,7 @@
|
|||||||
# just debug
|
# just debug
|
||||||
# just test
|
# just test
|
||||||
#
|
#
|
||||||
|
# just STATIC=1 # 静态链接
|
||||||
# just DEBUG=1 # 编译出 debug 版
|
# just DEBUG=1 # 编译出 debug 版
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
|
|
||||||
@ -49,11 +50,13 @@ Target-Name := if DEBUG != '0' {
|
|||||||
CI := '0'
|
CI := '0'
|
||||||
CI_ARTIFACT_NAME := 'chsrc'
|
CI_ARTIFACT_NAME := 'chsrc'
|
||||||
|
|
||||||
|
STATIC := '0'
|
||||||
|
|
||||||
# 在 GitHub Actions 时的 Linux 环境下,just CI=1 时触发
|
# 在 GitHub Actions 时的 Linux 环境下,just CI=1 时触发
|
||||||
CFLAGS_static := if os() == 'linux' {
|
CFLAGS_static := if STATIC == '1' {
|
||||||
if CI == '0' {
|
|
||||||
"-static"
|
"-static"
|
||||||
} else {''}
|
} else if os() == 'linux' {
|
||||||
|
if CI == '1' {"-static"} else {''}
|
||||||
} else {''}
|
} else {''}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user