@@ -178,11 +178,14 @@ 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- ["-fmodule-file=std.compat=%{temp}/std.compat.pcm" , "%{temp}/std.compat.pcm" ]
185+ [
186+ "-fmodule-file=std.compat=%{temp}/std.compat.pcm" ,
187+ "%{temp}/std.compat.pcm" ,
188+ ]
186189 )
187190
188191 # Make sure the std module is built before std.compat. Libc++'s
@@ -197,7 +200,9 @@ def parseScript(test, preamble):
197200 "-Wno-reserved-module-identifier -Wno-reserved-user-defined-literal "
198201 "--precompile -o %{temp}/std.pcm -c %{module-dir}/std.cppm" ,
199202 )
200- moduleCompileFlags .extend (["-fmodule-file=std=%{temp}/std.pcm" , "%{temp}/std.pcm" ])
203+ moduleCompileFlags .extend (
204+ ["-fmodule-file=std=%{temp}/std.pcm" , "%{temp}/std.pcm" ]
205+ )
201206
202207 # Add compile flags required for the modules.
203208 substitutions = config ._appendToSubstitution (
@@ -355,9 +360,15 @@ def execute(self, test, litConfig):
355360 "%dbg(COMPILED WITH) %{cxx} %s %{flags} %{compile_flags} %{benchmark_flags} %{link_flags} -o %t.exe" ,
356361 ]
357362 if "enable-benchmarks=run" in test .config .available_features :
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" ]
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+ ]
361372 return self ._executeShTest (test , litConfig , steps )
362373 elif re .search ('[.]gen[.][^.]+$' , filename ): # This only happens when a generator test is not supported
363374 return self ._executeShTest (test , litConfig , [])
0 commit comments