]> git.cameronkatri.com Git - dotfiles.git/commitdiff
Add x86_64-linux-gnu-env
authorCameron Katri <me@cameronkatri.com>
Thu, 17 Jun 2021 17:34:32 +0000 (13:34 -0400)
committerCameron Katri <me@cameronkatri.com>
Thu, 17 Jun 2021 17:34:32 +0000 (13:34 -0400)
.zshrc

diff --git a/.zshrc b/.zshrc
index ac6f9e5e31c5ff64bbe1544337ec8eb2c52717b6..f6f71df0e2b323a7503c33dec4da786490fa7c09 100755 (executable)
--- a/.zshrc
+++ b/.zshrc
@@ -83,6 +83,10 @@ fi
 
 source ~/.proenv.zsh
 
+function x86_64-linux-gnu-env() {
+       export CC='clang --target=x86_64-linux-gnu' CFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/ -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter' CPPFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/ -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter' LDFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/' LD='ld --target=x86_64-linux-gnu' AR='llvm-ar' NM='llvm-nm'
+}
+
 source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
 source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh