From 48fed27c67d41b1ef4eac94e8a7bb5994758522c Mon Sep 17 00:00:00 2001 From: Samuel Albrecht Date: Mon, 14 Sep 2020 17:55:49 +0200 Subject: [PATCH] add: compiler params to usage --- cppsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cppsh b/cppsh index 3d3f979..24c398d 100755 --- a/cppsh +++ b/cppsh @@ -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