@@ -944,7 +944,7 @@ def test_build_generated_pyx_directly(self):
944944 testdir = os .path .join ("test cases/cython" , '2 generated sources' )
945945 env = get_fake_env (testdir , self .builddir , self .prefix )
946946 try :
947- detect_compiler_for (env , "cython" , MachineChoice .HOST , True )
947+ detect_compiler_for (env , "cython" , MachineChoice .HOST , True , '' )
948948 except EnvironmentException :
949949 raise SkipTest ("Cython is not installed" )
950950 self .init (testdir )
@@ -969,7 +969,7 @@ def test_build_pyx_depfiles(self):
969969 testdir = os .path .join ("test cases/cython" , '2 generated sources' )
970970 env = get_fake_env (testdir , self .builddir , self .prefix )
971971 try :
972- cython = detect_compiler_for (env , "cython" , MachineChoice .HOST , True )
972+ cython = detect_compiler_for (env , "cython" , MachineChoice .HOST , True , '' )
973973 if not version_compare (cython .version , '>=0.29.33' ):
974974 raise SkipTest ('Cython is too old' )
975975 except EnvironmentException :
@@ -2355,7 +2355,7 @@ def test_templates(self):
23552355 env = get_fake_env ()
23562356 for l in ['cpp' , 'cs' , 'd' , 'java' , 'cuda' , 'fortran' , 'objc' , 'objcpp' , 'rust' , 'vala' ]:
23572357 try :
2358- comp = detect_compiler_for (env , l , MachineChoice .HOST , True )
2358+ comp = detect_compiler_for (env , l , MachineChoice .HOST , True , '' )
23592359 with tempfile .TemporaryDirectory () as d :
23602360 comp .sanity_check (d , env )
23612361 langs .append (l )
@@ -2373,7 +2373,7 @@ def test_templates(self):
23732373 if is_windows () and lang == 'fortran' and target_type == 'library' :
23742374 # non-Gfortran Windows Fortran compilers do not do shared libraries in a Fortran standard way
23752375 # see "test cases/fortran/6 dynamic"
2376- fc = detect_compiler_for (env , 'fortran' , MachineChoice .HOST , True )
2376+ fc = detect_compiler_for (env , 'fortran' , MachineChoice .HOST , True , '' )
23772377 if fc .get_id () in {'intel-cl' , 'pgi' }:
23782378 continue
23792379 # test empty directory
@@ -4433,18 +4433,18 @@ def test_env_flags_to_linker(self) -> None:
44334433 env = get_fake_env ()
44344434
44354435 # Get the compiler so we know which compiler class to mock.
4436- cc = detect_compiler_for (env , 'c' , MachineChoice .HOST , True )
4436+ cc = detect_compiler_for (env , 'c' , MachineChoice .HOST , True , '' )
44374437 cc_type = type (cc )
44384438
44394439 # Test a compiler that acts as a linker
44404440 with mock .patch .object (cc_type , 'INVOKES_LINKER' , True ):
4441- cc = detect_compiler_for (env , 'c' , MachineChoice .HOST , True )
4441+ cc = detect_compiler_for (env , 'c' , MachineChoice .HOST , True , '' )
44424442 link_args = env .coredata .get_external_link_args (cc .for_machine , cc .language )
44434443 self .assertEqual (sorted (link_args ), sorted (['-DCFLAG' , '-flto' ]))
44444444
44454445 # And one that doesn't
44464446 with mock .patch .object (cc_type , 'INVOKES_LINKER' , False ):
4447- cc = detect_compiler_for (env , 'c' , MachineChoice .HOST , True )
4447+ cc = detect_compiler_for (env , 'c' , MachineChoice .HOST , True , '' )
44484448 link_args = env .coredata .get_external_link_args (cc .for_machine , cc .language )
44494449 self .assertEqual (sorted (link_args ), sorted (['-flto' ]))
44504450
0 commit comments