Created
April 23, 2019 11:27
-
-
Save badboy/da80f6399113d33503470644175bafaf to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
origcc=/usr/bin/cc | |
fakecc=/usr/local/bin/x86_64-unknown-linux-gnu-gcc | |
if [[ "$cmdline" =~ "x86_64-apple-darwin" ]]; then | |
exec "$origcc" "$@" | |
else | |
exec "$fakecc" "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment