diff --git a/yggdrasil/drivers/CPPModelDriver.py b/yggdrasil/drivers/CPPModelDriver.py index a4ce0515f..de8bb81a9 100644 --- a/yggdrasil/drivers/CPPModelDriver.py +++ b/yggdrasil/drivers/CPPModelDriver.py @@ -60,7 +60,7 @@ class GPPCompiler(CPPCompilerBase, GCCCompiler): aliases = ['gnu-c++', 'gnu-g++'] default_linker = 'g++' version_regex = [ - r'(?P(?:.*gnu\-)?(?:g|c)\+\+ \(.+\) \d+\.\d+\.\d+)'] + r'(?P(?:.*gnu\-)?(?:g|c)\+\+(?:\.exe)? \(.+\) \d+\.\d+\.\d+)'] standard_library = 'stdc++' libraries = {} diff --git a/yggdrasil/drivers/MakeModelDriver.py b/yggdrasil/drivers/MakeModelDriver.py index 634783753..54607ad4a 100644 --- a/yggdrasil/drivers/MakeModelDriver.py +++ b/yggdrasil/drivers/MakeModelDriver.py @@ -80,8 +80,10 @@ class NMakeBuilder(MakeBuilder): default_flags = ['/NOLOGO'] flag_options = OrderedDict([('buildfile', '/f')]) default_executable = None - version_regex = None - + version_regex = [ + r'(?PMicrosoft \(R\) Program Maintenance Utility ' + r'Version \d+\.\d+(?:\.\d+)*)'] + class MakeModelDriver(BuildModelDriver): r"""Class for running make file compiled drivers. Before running the diff --git a/yggdrasil/drivers/OSRModelDriver.py b/yggdrasil/drivers/OSRModelDriver.py index e3113b951..84bda8c33 100644 --- a/yggdrasil/drivers/OSRModelDriver.py +++ b/yggdrasil/drivers/OSRModelDriver.py @@ -171,6 +171,10 @@ def compile_dependencies(cls, target='OpenSimRootYgg', toolname=None, env['YGG_OSR_TOOL'] = toolname if toolname == 'cl++': cl_path = tool.get_executable(full_path=True) + link_path = tool.get_tool('linker').get_executable( + full_path=True) + logger.info(f"OSR compiler: {cl_path}\n" + f"OSR linker: {link_path}") if cl_path: msvc_bin = os.path.dirname(cl_path) env['YGG_OSR_CXX'] = cl_path @@ -184,6 +188,7 @@ def compile_dependencies(cls, target='OpenSimRootYgg', toolname=None, env[k] = v.replace('/', '-') env[k] = MakeModelDriver.fix_path( v, for_env=True, is_gnu=True) + logger.info(f"OSR env {k} = {v}") else: # pragma: debug env.pop('YGG_OSR_TOOL') warnings.warn(