diff options
Diffstat (limited to 'Build/source/Build')
-rwxr-xr-x | Build/source/Build | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/Build b/Build/source/Build index 1cc955f83d5..9229199890d 100755 --- a/Build/source/Build +++ b/Build/source/Build @@ -61,10 +61,12 @@ if test "x$1" = x--debug || test "x$1" = x-g; then # The idea is that with Build -g, you can set TL_COMPILER_GFLAGS in # the environment with options common to all compilers -- # not necessarily anything to do with debugging, e.g., -mcpu=sparvc9. + # Or you can set TL_{C,CXX,OBJCXX}FLAGS for per-language flags, + # notably TL_CFLAGS=-Wdeclaration-after-statement. : ${TL_COMPILER_GFLAGS=-g} - c="CFLAGS='$TL_COMPILER_GFLAGS'" - cxx="CXXFLAGS='$TL_COMPILER_GFLAGS'" - objcxx="OBJCXXFLAGS='$TL_COMPILER_GFLAGS'" # needed only on macs + c="CFLAGS='$TL_COMPILER_GFLAGS $TL_CFLAGS'" + cxx="CXXFLAGS='$TL_COMPILER_GFLAGS $TL_CXXFLAGS'" + objcxx="OBJCXXFLAGS='$TL_COMPILER_GFLAGS $TL_OBJCXXFLAGS'" # only for macs TL_BUILD_ENV="$c $cxx $objcxx $TL_BUILD_ENV" fi |