| # -*- Python -*- |
| |
| import os |
| |
| # We specify the most commonly-used arch and platform version in our tests here |
| # Tests which need different settings can just append to this, as only the last |
| # value will be used. |
| # |
| # Note however that this does not apply to `-syslibroot`: each instance of that |
| # flag will append to the set of library roots. |
| lld = ('ld64.lld -arch x86_64 -platform_version macos 10.0 11.0 -syslibroot ' + |
| os.path.join(config.test_source_root, "MachO", "Inputs", "MacOSX.sdk")) |
| config.substitutions.append(('%lld', lld + ' -fatal_warnings')) |
| config.substitutions.append(('%no_fatal_warnings_lld', lld)) |