File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -336,13 +336,20 @@ def _mingwSupportsModules(cfg):
336336 or platform .system ().lower ().startswith ("aix" )
337337 # Avoid building on platforms that don't support modules properly.
338338 or not hasCompileFlag (cfg , "-Wno-reserved-module-identifier" )
339- or not sourceBuilds (
339+ # older versions don't support extern "C++", newer versions don't support main in named module.
340+ or not (sourceBuilds (
340341 cfg ,
341342 """
342343 export module test;
343344 extern "C++" int main(int, char**) { return 0; }
344345 """ ,
345- ),
346+ ) or sourceBuilds (
347+ cfg ,
348+ """
349+ export module test;
350+ int main(int, char**) { return 0; }
351+ """ ,
352+ )),
346353 ),
347354 # The time zone validation tests compare the output of zdump against the
348355 # output generated by <chrono>'s time zone support.
You can’t perform that action at this time.
0 commit comments