support clang and other compilers
This commit is contained in:
+3
-2
@@ -7,9 +7,10 @@ PREFIX=/usr/local
|
||||
|
||||
|
||||
# Compile cppipe
|
||||
options="-std=c++17 -Ofast --whole-program -march=native -DNDEBUG -Wall -Wextra -Wno-parentheses -Wno-unused-result -s -pipe"
|
||||
# The options are with gcc in mind, but should work with clang and maybe other compilers
|
||||
options="-std=c++17 -Ofast -fwhole-program -march=native -DNDEBUG -Wall -Wextra -Wno-parentheses -Wno-unused-result -s -pipe"
|
||||
# options="-std=c++17 -g"
|
||||
g++ -o cppipe $options cppipe.cpp
|
||||
c++ -o cppipe $options cppipe.cpp
|
||||
chmod 755 cppipe
|
||||
mv cppipe ${PREFIX}/bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user