Skip to content

Commit

Permalink
Fix version regex for dumpbin
Browse files Browse the repository at this point in the history
Mark cmake tests as requiring C & C++
Restore version flags for gcc linker
  • Loading branch information
langmm committed Jun 25, 2024
1 parent 08c4db8 commit b147c1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/drivers/test_CMakeModelDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def test_CMakeModelDriver_error_nofile():
assert not os.path.isfile(buildfile)


@pytest.mark.language('c')
@pytest.mark.language('c++')
class TestCMakeModelDriver(base_class):
r"""Test runner for CMakeModelDriver."""

Expand Down
4 changes: 2 additions & 2 deletions yggdrasil/drivers/CModelDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ class GCCLinker(LDLinker):
default_executable = GCCCompiler.default_executable
toolset = GCCCompiler.toolset
compatible_toolsets = GCCCompiler.compatible_toolsets
version_flags = ['-Xlinker', '-v']
version_flags = ['-Xlinker', '--verbose']
version_regex = LDLinker.version_regex + GCCCompiler.version_regex
search_path_flags = ['-Xlinker', '-v']
search_path_flags = ['-Xlinker', '--verbose']
search_regex = [r'SEARCH_DIR\("=([^"]+)"\);']
flag_options = OrderedDict(LDLinker.flag_options,
**{'library_rpath': '-Wl,-rpath'})
Expand Down
3 changes: 2 additions & 1 deletion yggdrasil/drivers/CompiledModelDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6254,7 +6254,8 @@ class DumpBinDisassembler(DisassemblerBase):
'filters': ['DLL name']},
}
version_regex = [
r'Microsoft \(R\) COFF\/PE Dumper Version \d+\.\d+\.\d+\.\d+']
r'(?P<version>Microsoft \(R\) COFF\/PE Dumper Version '
r'\d+\.\d+\.\d+\.\d+)']


class BuilderBase(CompilationToolBase):
Expand Down

0 comments on commit b147c1e

Please sign in to comment.