mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
configure: Put user flags after the mode flags
It is sometimes convenient to build with flags that don't match any existing mode. Recently I was tracking a bug that would not reproduce with debug, but reproduced with dev, so I tried debugging the result of ./configure.py --cflags="-O0 -g" While the binary had debug info, it still had optimizations because configure.py put the mode flags after the user flags (-O0 -O1). This patch flips the order (-O1 -O0) so that the flags passed in the command line win. Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com> Message-Id: <20200116012318.361732-1-espindola@scylladb.com>
This commit is contained in:
committed by
Avi Kivity
parent
51281bc8ad
commit
317e0228a8
@@ -1333,7 +1333,7 @@ with open(buildfile_tmp, 'w') as f:
|
||||
libs_{mode} = -l{fmt_lib}
|
||||
seastar_libs_{mode} = {seastar_libs}
|
||||
rule cxx.{mode}
|
||||
command = $cxx -MD -MT $out -MF $out.d {seastar_cflags} $cxxflags $cxxflags_{mode} $obj_cxxflags -c -o $out $in
|
||||
command = $cxx -MD -MT $out -MF $out.d {seastar_cflags} $cxxflags_{mode} $cxxflags $obj_cxxflags -c -o $out $in
|
||||
description = CXX $out
|
||||
depfile = $out.d
|
||||
rule link.{mode}
|
||||
|
||||
Reference in New Issue
Block a user