commit adeb8cb705dfb18c216bac57ba23a2ccc9efb2ef
parent 25b672aaff3f4895825ecccc8cb5183c536e6218
Author: evenfri <evenfri256@gmail.com>
Date: Mon, 10 Aug 2026 00:32:12 +0800
update cc
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/wrappers/cc b/wrappers/cc
@@ -1,20 +1,19 @@
#!/bin/sh
-flags="-c -Wall -Wextra"
+global_flags="-c -Wall -Wextra"
+flags="$global_flags"
if [ ! -z "$not_use_libc" ]; then
inc=$(/usr/bin/cc -print-file-name=include)
- exec /usr/bin/cc \
- "$flags" \
+ flags="$flags
-fstack-protector-all \
-mstack-protector-guard=global \
-nostdlib \
-nostdinc \
-ffreestanding \
-fno-builtin \
- -isystem "$inc" \
- "$@"
+ -isystem $inc"
fi
-exec /usr/bin/cc "$flags" "$@"
+exec /usr/bin/cc $flags "$@"