Skip to content

Commit 48fed27

Browse files
committed
add: compiler params to usage
1 parent 731bc37 commit 48fed27

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cppsh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ if [ $# -lt 1 ] || [[ "$1" == "-"* ]]; then
55
echo " * cppsh source.cpp"
66
echo " * or add \"#!/usr/bin/env cppsh\" on top of your source file and execute it directly"
77
echo " * if the source file does not exist, it is created with a hello world stump"
8+
echo " * add compiler params as comments, e.g.:"
9+
echo " // cppsh::CPPFLAGS -DLOG=1"
10+
echo " // cppsh::CXXFLAGS -march=native"
11+
echo " // cppsh::LDFLAGS -flto"
12+
echo " // cppsh::LIBS -lcurl"
13+
echo " // cppsh::VERBOSE 1"
814
exit 1
915
fi
1016

0 commit comments

Comments
 (0)