diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-09-04 01:45:14 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-09-04 01:45:14 +0300 |
commit | e698d147be467ed9771caa0197f36913389c3a1a (patch) | |
tree | 9a5d68b61d78e1bc477992343599f44fb4618ff9 /%HOME% | |
parent | runc*: support -L w/ relative paths (diff) | |
download | linux-home-e698d147be467ed9771caa0197f36913389c3a1a.tar.gz linux-home-e698d147be467ed9771caa0197f36913389c3a1a.zip |
runc*: put flags after source files
Weirdly, GCC _really_ likes it that way.
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.bash_utils/cxx.sh | 8 |
1 files 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[@]}"} ) |