File tree Expand file tree Collapse file tree 9 files changed +20
-20
lines changed Expand file tree Collapse file tree 9 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
1515 From John Doe:
1616 - Whatever John Doe did.
1717
18- From Mats Wichmann:
19- - Clean up C and C++ FLAGS tests. Tests which use a real compiler
20- are now more clearly distinguished (-live.py suffix and docstring).
21-
2218 From Bill Prendergast:
2319 - Fixed SCons.Variables.PackageVariable to correctly test the default
2420 setting against both enable & disable strings. (Fixes #4702)
2521 - Extended unittests (crudely) to test for correct/expected response
2622 when default setting is a boolean string.
2723
24+ From Mats Wichmann:
25+ - Clean up C and C++ FLAGS tests. Tests which use a real compiler
26+ are now more clearly distinguished (-live.py suffix and docstring).
27+
2828
2929RELEASE 4.9.1 - Thu, 27 Mar 2025 11:40:20 -0700
3030
Original file line number Diff line number Diff line change 4949 barflags = '-DBAR'
5050
5151test .write ('SConstruct' , f"""\
52- _ = DefaultEnvironment(tools=[])
52+ DefaultEnvironment(tools=[])
5353foo = Environment(CCFLAGS='{ fooflags } ')
5454bar = Environment(CCFLAGS='{ barflags } ')
5555
9191""" )
9292
9393test .write ('SConstruct' , f"""\
94- _ = DefaultEnvironment(tools=[])
94+ DefaultEnvironment(tools=[])
9595bar = Environment(CCFLAGS='{ barflags } ')
9696
9797foo_obj = bar.Object(target='foo', source='prog.c')
Original file line number Diff line number Diff line change 3737
3838# Make sure CFLAGS is not passed to CXX by just expanding CXXCOM
3939test .write ('SConstruct' , """\
40- _ = DefaultEnvironment(tools=[])
40+ DefaultEnvironment(tools=[])
4141env = Environment(CFLAGS='-xyz', CCFLAGS='-abc')
4242print(env.subst('$CXXCOM'))
4343print(env.subst('$CXXCOMSTR'))
6363 barflags = '-DBAR'
6464
6565test .write ('SConstruct' , f"""\
66- _ = DefaultEnvironment(tools=[])
66+ DefaultEnvironment(tools=[])
6767foo = Environment(CFLAGS="{ fooflags } ")
6868bar = Environment(CFLAGS="{ barflags } ")
6969
105105""" )
106106
107107test .write ('SConstruct' , f"""\
108- _ = DefaultEnvironment(tools=[])
108+ DefaultEnvironment(tools=[])
109109bar = Environment(CFLAGS='{ barflags } ')
110110
111111foo_obj = bar.Object(target='foo', source='prog.c')
Original file line number Diff line number Diff line change 4646 os .environ ['LD_LIBRARYN32_PATH' ] = '.'
4747
4848test .write ('SConstruct' , f"""\
49- _ = DefaultEnvironment(tools=[])
49+ DefaultEnvironment(tools=[])
5050foo = Environment(SHCCFLAGS='{ fooflags } ', WINDOWS_INSERT_DEF=1)
5151bar = Environment(SHCCFLAGS='{ barflags } ', WINDOWS_INSERT_DEF=1)
5252
113113test .run (program = test .workpath ('barprog' ), stdout = "prog.c: BAR\n " )
114114
115115test .write ('SConstruct' , f"""\
116- _ = DefaultEnvironment(tools=[])
116+ DefaultEnvironment(tools=[])
117117bar = Environment(SHCCFLAGS='{ barflags } ', WINDOWS_INSERT_DEF=1)
118118
119119foo_obj = bar.SharedObject(target='foo', source='prog.c')
Original file line number Diff line number Diff line change 4646 os .environ ['LD_LIBRARYN32_PATH' ] = '.'
4747
4848test .write ('SConstruct' , f"""\
49- _ = DefaultEnvironment(tools=[])
49+ DefaultEnvironment(tools=[])
5050foo = Environment(SHCFLAGS='{ fooflags } ', WINDOWS_INSERT_DEF=1)
5151bar = Environment(SHCFLAGS='{ barflags } ', WINDOWS_INSERT_DEF=1)
5252
113113test .run (program = test .workpath ('barprog' ), stdout = "prog.c: BAR\n " )
114114
115115test .write ('SConstruct' , f"""\
116- _ = DefaultEnvironment(tools=[])
116+ DefaultEnvironment(tools=[])
117117bar = Environment(SHCFLAGS='{ barflags } ', WINDOWS_INSERT_DEF=1)
118118
119119foo_obj = bar.SharedObject(target='foo', source='prog.c')
Original file line number Diff line number Diff line change 3535test = TestSCons .TestSCons ()
3636
3737test .write ('SConstruct' , """\
38- _ = DefaultEnvironment(tools=[])
38+ DefaultEnvironment(tools=[])
3939foo = Environment()
4040foo.Append(CCFLAGS='-DFOO', CXXFLAGS='-DCXX')
4141bar = Environment()
Original file line number Diff line number Diff line change 4545e = test .Environment ()
4646
4747test .write ('SConstruct' , """\
48- _ = DefaultEnvironment(tools=[])
48+ DefaultEnvironment(tools=[])
4949foo = Environment(WINDOWS_INSERT_DEF=1)
5050foo.Append(CXXFLAGS='-DFOO')
5151bar = Environment(WINDOWS_INSERT_DEF=1)
138138test .run (program = test .workpath ('bar' ), stdout = "prog.c: BAR\n " )
139139
140140test .write ('SConstruct' , """\
141- _ = DefaultEnvironment(tools=[])
141+ DefaultEnvironment(tools=[])
142142bar = Environment(WINDOWS_INSERT_DEF=1)
143143bar.Append(CXXFLAGS='-DBAR')
144144
Original file line number Diff line number Diff line change 4646 os .environ ['LD_LIBRARYN32_PATH' ] = '.'
4747
4848test .write ('SConstruct' , f"""\
49- _ = DefaultEnvironment(tools=[])
49+ DefaultEnvironment(tools=[])
5050foo = Environment(SHCCFLAGS='{ fooflags } ', WINDOWS_INSERT_DEF=1)
5151bar = Environment(SHCCFLAGS='{ barflags } ', WINDOWS_INSERT_DEF=1)
5252
113113test .run (program = test .workpath ('barprog' ), stdout = "prog.cpp: BAR\n " )
114114
115115test .write ('SConstruct' , f"""\
116- _ = DefaultEnvironment(tools=[])
116+ DefaultEnvironment(tools=[])
117117bar = Environment(SHCCFLAGS='{ barflags } ', WINDOWS_INSERT_DEF=1)
118118
119119foo_obj = bar.SharedObject(target='foo', source='prog.cpp')
Original file line number Diff line number Diff line change 4646 os .environ ['LD_LIBRARYN32_PATH' ] = '.'
4747
4848test .write ('SConstruct' , f"""\
49- _ = DefaultEnvironment(tools=[])
49+ DefaultEnvironment(tools=[])
5050foo = Environment(SHCXXFLAGS='{ fooflags } ', WINDOWS_INSERT_DEF=1)
5151bar = Environment(SHCXXFLAGS='{ barflags } ', WINDOWS_INSERT_DEF=1)
5252
113113test .run (program = test .workpath ('barprog' ), stdout = "prog.cpp: BAR\n " )
114114
115115test .write ('SConstruct' , f"""\
116- _ = DefaultEnvironment(tools=[])
116+ DefaultEnvironment(tools=[])
117117bar = Environment(SHCXXFLAGS='{ barflags } ', WINDOWS_INSERT_DEF=1)
118118
119119foo_obj = bar.SharedObject(target='foo', source='prog.cpp')
You can’t perform that action at this time.
0 commit comments