commit 234def67baef284f1e49c7a485cbfe80229fc240 parent c0dc0fb16d89ddaaf883bc57d9990f1c1d8947e6 Author: torter <koubbamohamedrayan@gmail.com> Date: Mon, 16 Nov 2026 22:03:37 +0000 cc: no link flags when only compiling Diffstat:
| M | files/usr/bin/cc | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/files/usr/bin/cc b/files/usr/bin/cc @@ -1,2 +1,3 @@ #!/bin/sh -exec clang --rtlib=compiler-rt --unwindlib=libunwind -fuse-ld=lld -Wno-unused-command-line-argument "$@" +case " $* " in *" -c "*|*" -E "*|*" -S "*) exec clang "$@";; esac +exec clang --rtlib=compiler-rt --unwindlib=libunwind -fuse-ld=lld "$@"