Skip to content

Commit

Permalink
add: compiler params to usage
Browse files Browse the repository at this point in the history
  • Loading branch information
elsamuko committed Sep 14, 2020
1 parent 731bc37 commit 48fed27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cppsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ if [ $# -lt 1 ] || [[ "$1" == "-"* ]]; then
echo " * cppsh source.cpp"
echo " * or add \"#!/usr/bin/env cppsh\" on top of your source file and execute it directly"
echo " * if the source file does not exist, it is created with a hello world stump"
echo " * add compiler params as comments, e.g.:"
echo " // cppsh::CPPFLAGS -DLOG=1"
echo " // cppsh::CXXFLAGS -march=native"
echo " // cppsh::LDFLAGS -flto"
echo " // cppsh::LIBS -lcurl"
echo " // cppsh::VERBOSE 1"
exit 1
fi

Expand Down

0 comments on commit 48fed27

Please # to comment.