From e698d147be467ed9771caa0197f36913389c3a1a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 4 Sep 2017 01:45:14 +0300 Subject: runc*: put flags after source files Weirdly, GCC _really_ likes it that way. --- %HOME%/.bash_utils/cxx.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/%HOME%/.bash_utils/cxx.sh b/%HOME%/.bash_utils/cxx.sh index 858b448..f7da291 100644 --- a/%HOME%/.bash_utils/cxx.sh +++ b/%HOME%/.bash_utils/cxx.sh @@ -124,8 +124,8 @@ runc() ( output_name="$( mktemp --tmpdir=. -- "${FUNCNAME[0]}XXX${_runc_exe_ext-}" )" "${runc_compiler:-gcc}" -o "$output_name" \ - ${c_flags[@]+"${c_flags[@]}"} \ - ${src_files[@]+"${src_files[@]}"} + ${src_files[@]+"${src_files[@]}"} \ + ${c_flags[@]+"${c_flags[@]}"} "$output_name" ${prog_args[@]+"${prog_args[@]}"} ) @@ -228,8 +228,8 @@ runcxx() ( output_name="$( mktemp --tmpdir=. -- "${FUNCNAME[0]}XXX${_runc_exe_ext-}" )" "${runcxx_compiler:-g++}" -o "$output_name" \ - ${cxx_flags[@]+"${cxx_flags[@]}"} \ - ${src_files[@]+"${src_files[@]}"} + ${src_files[@]+"${src_files[@]}"} \ + ${cxx_flags[@]+"${cxx_flags[@]}"} "$output_name" ${prog_args[@]+"${prog_args[@]}"} ) -- cgit v1.2.3