mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-24 11:14:13 +01:00
bashrc & zshrc: don't unset CC & CXX
I am not sure what I was thinking when I wrote that. What if compiler isn't gcc or clang, but gcc is default?
This commit is contained in:
parent
b9c52c921d
commit
78695eb73c
4
bashrc
4
bashrc
@ -807,13 +807,13 @@ erase-mbr() {
|
|||||||
if hash clang 2>/dev/null; then
|
if hash clang 2>/dev/null; then
|
||||||
export CC=clang
|
export CC=clang
|
||||||
else
|
else
|
||||||
unset CC
|
#unset CC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if hash clang++ 2>/dev/null; then
|
if hash clang++ 2>/dev/null; then
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
else
|
else
|
||||||
unset CXX
|
#unset CXX
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# .custom
|
# .custom
|
||||||
|
4
zshrc
4
zshrc
@ -780,13 +780,13 @@ erase-mbr() {
|
|||||||
if hash clang 2>/dev/null; then
|
if hash clang 2>/dev/null; then
|
||||||
export CC=clang
|
export CC=clang
|
||||||
else
|
else
|
||||||
unset CC
|
#unset CC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if hash clang++ 2>/dev/null; then
|
if hash clang++ 2>/dev/null; then
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
else
|
else
|
||||||
unset CXX
|
#unset CXX
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user