redoconf: a stub rc_include() now sources ./redoconf.rc automatically.
This lets us remove the awkward ". ./redoconf.rc" line from zillions of .od scripts, without paying the price of *always* including that whole file every time default.do.sh is used.
This commit is contained in:
parent
49f85f2156
commit
1a3c11f220
34 changed files with 5 additions and 34 deletions
|
|
@ -1,4 +1,3 @@
|
|||
. ./redoconf.rc
|
||||
rc_include \
|
||||
rc/CC.required.rc \
|
||||
rc/CXX.rc \
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
# Demonstrate how to compile .o files using nonstandard
|
||||
# compiler flags. You could also do this for a whole
|
||||
# directory using default.o.od.
|
||||
. ./redoconf.rc
|
||||
rc_include all.rc
|
||||
|
||||
src="$S/${1%.o}.c"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# This script is run from the output dir.
|
||||
# The source dir is at $S.
|
||||
. ./redoconf.rc
|
||||
rc_include all.rc
|
||||
redo-ifchange "$S/sources"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
. ./redoconf.rc
|
||||
rc_include rc/CC.rc rc/rt.autolib.rc rc/posix.rc
|
||||
|
||||
prog="
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
. ./redoconf.rc
|
||||
rc_include
|
||||
|
||||
rc_appendln CPPFLAGS "-DEXTRA_RC_INCLUDED=1"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
. ./redoconf.rc
|
||||
rc_include rc/CC.rc
|
||||
|
||||
prog='
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
. ./redoconf.rc
|
||||
rc_include rc/CC.rc rc/windows.h.rc rc/Wall.rc
|
||||
|
||||
appendln CPPFLAGS "-Werror" # abort if any warnings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue