Created
August 20, 2018 15:19
-
-
Save ljmccarthy/d2f74723d84492ea271d7f8d7a9d739f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for arg in "$@"; do | |
case $arg in | |
-c) | |
exec clang -emit-llvm -flto "$@" | |
esac | |
done | |
exec clang -fuse-ld=lld -flto -static -Wl,--gc-sections -Wl,--strip-all -Wl,--threads "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment