support clang and other compilers

This commit is contained in:
Venelin
2024-05-27 10:26:30 +03:00
parent 0b625dc84d
commit cf3663b348
3 changed files with 19 additions and 5 deletions
+3 -2
View File
@@ -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