commit 25b672aaff3f4895825ecccc8cb5183c536e6218
parent 64ffc553406551bb7a52f44e0562328265184f27
Author: evenfri <evenfri256@gmail.com>
Date: Mon, 10 Aug 2026 00:13:21 +0800
update cc
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/wrappers/cc b/wrappers/cc
@@ -1,9 +1,12 @@
#!/bin/sh
+flags="-c -Wall -Wextra"
+
if [ ! -z "$not_use_libc" ]; then
inc=$(/usr/bin/cc -print-file-name=include)
- exec /usr/bin/cc -c \
+ exec /usr/bin/cc \
+ "$flags" \
-fstack-protector-all \
-mstack-protector-guard=global \
-nostdlib \
@@ -14,4 +17,4 @@ if [ ! -z "$not_use_libc" ]; then
"$@"
fi
-exec /usr/bin/cc -c "$@"
+exec /usr/bin/cc "$flags" "$@"