2020-09-19 12:40:12 +08:00
|
|
|
# -*- Python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
2021-04-14 00:39:24 +08:00
|
|
|
# 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.
|
2021-03-04 04:52:10 +08:00
|
|
|
#
|
|
|
|
# Note however that this does not apply to `-syslibroot`: each instance of that
|
2021-04-14 00:39:24 +08:00
|
|
|
# flag will append to the set of library roots.
|
2021-03-04 04:52:10 +08:00
|
|
|
lld = ('ld64.lld -arch x86_64 -platform_version macos 10.0 11.0 -syslibroot ' +
|
2020-12-03 22:35:25 +08:00
|
|
|
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))
|