鏡像自
https://git.tukaani.org/xz.git
synced 2025-07-05 20:06:38 +00:00
ci: default to -O2
We need this for when we're passing sanitizer flags or -gdwarf-4 for Clang with Valgrind. Just always start with -O2 if CFLAGS isn't set in the environment and append what was passed on the command line. (cherry picked from commit 65bf7e0a1ca6386f17608e8afb84ac470c18d23f)
This commit is contained in:
父節點
752ba5ed99
當前提交
4381fcf00b
@ -48,6 +48,7 @@ DEST_DIR="$SRC_DIR/../xz_build"
|
||||
PHASE="all"
|
||||
ARTIFACTS_DIR_NAME="output"
|
||||
|
||||
[[ -z ${CFLAGS} ]] && export CFLAGS="-O2"
|
||||
|
||||
###################
|
||||
# Parse arguments #
|
||||
@ -105,7 +106,7 @@ while getopts a:b:c:d:l:m:n:s:p:f:w:h opt; do
|
||||
p) PHASE="$OPTARG"
|
||||
;;
|
||||
f)
|
||||
CFLAGS="$OPTARG"
|
||||
CFLAGS+=" $OPTARG"
|
||||
export CFLAGS
|
||||
;;
|
||||
w) WRAPPER="$OPTARG"
|
||||
|
載入中…
x
新增問題並參考
Block a user