@@ -178,14 +178,11 @@ def parseScript(test, preamble):
178178 "%dbg(MODULE std.compat) %{cxx} %{flags} "
179179 f"{ compileFlags } "
180180 "-Wno-reserved-module-identifier -Wno-reserved-user-defined-literal "
181- "-fmodule-file=std=%{temp}/std.pcm " # The std.compat module imports std.
181+ "-fmodule-file=std=%{temp}/std.pcm " # The std.compat module imports std.
182182 "--precompile -o %{temp}/std.compat.pcm -c %{module-dir}/std.compat.cppm" ,
183183 )
184184 moduleCompileFlags .extend (
185- [
186- "-fmodule-file=std.compat=%{temp}/std.compat.pcm" ,
187- "%{temp}/std.compat.pcm" ,
188- ]
185+ ["-fmodule-file=std.compat=%{temp}/std.compat.pcm" , "%{temp}/std.compat.pcm" ]
189186 )
190187
191188 # Make sure the std module is built before std.compat. Libc++'s
@@ -200,9 +197,7 @@ def parseScript(test, preamble):
200197 "-Wno-reserved-module-identifier -Wno-reserved-user-defined-literal "
201198 "--precompile -o %{temp}/std.pcm -c %{module-dir}/std.cppm" ,
202199 )
203- moduleCompileFlags .extend (
204- ["-fmodule-file=std=%{temp}/std.pcm" , "%{temp}/std.pcm" ]
205- )
200+ moduleCompileFlags .extend (["-fmodule-file=std=%{temp}/std.pcm" , "%{temp}/std.pcm" ])
206201
207202 # Add compile flags required for the modules.
208203 substitutions = config ._appendToSubstitution (
@@ -360,15 +355,9 @@ def execute(self, test, litConfig):
360355 "%dbg(COMPILED WITH) %{cxx} %s %{flags} %{compile_flags} %{benchmark_flags} %{link_flags} -o %t.exe" ,
361356 ]
362357 if "enable-benchmarks=run" in test .config .available_features :
363- steps += [
364- "%dbg(EXECUTED AS) %{exec} %t.exe --benchmark_out=%{temp}/benchmark-result.json --benchmark_out_format=json"
365- ]
366- parse_results = os .path .join (
367- LIBCXX_UTILS , "parse-google-benchmark-results"
368- )
369- steps += [
370- f"{ parse_results } %{ temp } /benchmark-result.json --output-format=lnt > %{ temp } /results.lnt"
371- ]
358+ steps += ["%dbg(EXECUTED AS) %{exec} %t.exe --benchmark_out=%{temp}/benchmark-result.json --benchmark_out_format=json" ]
359+ parse_results = os .path .join (LIBCXX_UTILS , 'parse-google-benchmark-results' )
360+ steps += [f"{ parse_results } %{ temp } /benchmark-result.json --output-format=lnt > %{ temp } /results.lnt" ]
372361 return self ._executeShTest (test , litConfig , steps )
373362 elif re .search ('[.]gen[.][^.]+$' , filename ): # This only happens when a generator test is not supported
374363 return self ._executeShTest (test , litConfig , [])
0 commit comments