@@ -1333,7 +1333,7 @@ def _get_gnu_compiler_defines(compiler: T.List[str], lang: str) -> T.Dict[str, s
13331333 """
13341334 Get the list of GCC pre-processor defines
13351335 """
1336- from .mixins .gnu import _LANG_MAP as gnu_LANG_MAP
1336+ from .mixins .gnu import gnu_lang_map
13371337
13381338 def _try_obtain_compiler_defines (args : T .List [str ]) -> str :
13391339 mlog .debug (f'Running command: { join_args (args )} ' )
@@ -1355,7 +1355,7 @@ def _try_obtain_compiler_defines(args: T.List[str]) -> str:
13551355
13561356 # We might not have a match for Fortran, so fallback to detection
13571357 # based on the driver.
1358- lang = gnu_LANG_MAP [lang ]
1358+ lang = gnu_lang_map [lang ]
13591359
13601360 # The compiler may not infer the target language based on the driver name
13611361 # so first, try with '-cpp -x lang', then fallback without given it's less
@@ -1386,7 +1386,7 @@ def _get_clang_compiler_defines(compiler: T.List[str], lang: str) -> T.Dict[str,
13861386 """
13871387 Get the list of Clang pre-processor defines
13881388 """
1389- from .mixins .clang import _LANG_MAP as clang_LANG_MAP
1389+ from .mixins .clang import clang_lang_map
13901390
13911391 def _try_obtain_compiler_defines (args : T .List [str ]) -> str :
13921392 mlog .debug (f'Running command: { join_args (args )} ' )
@@ -1407,7 +1407,7 @@ def _try_obtain_compiler_defines(args: T.List[str]) -> str:
14071407
14081408 # We might not have a match for Fortran, so fallback to detection
14091409 # based on the driver.
1410- lang = clang_LANG_MAP [lang ]
1410+ lang = clang_lang_map [lang ]
14111411
14121412 # The compiler may not infer the target language based on the driver name
14131413 # so first, try with '-cpp -x lang', then fallback without given it's less
0 commit comments