File: lit.local.cfg

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (36 lines) | stat: -rw-r--r-- 1,569 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- Python -*-

import os

# FIXME: The MachO back-end currently does not respect endianness when
# accessing binary data structures, and therefore only works correctly
# on little-endian host systems.  Skip all tests on big-endian hosts.
if sys.byteorder == "big":
    config.unsupported = True

# We specify the most commonly-used archs and platform versions 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. As such, we define a separate
# alias for each platform.

lld_watchos = (
    "ld64.lld -lSystem -arch arm64_32 -platform_version watchos 7.0 8.0 -syslibroot "
    + os.path.join(config.test_source_root, "MachO", "Inputs", "WatchOS.sdk")
)
config.substitutions.append(("%lld-watchos", lld_watchos + " -fatal_warnings"))
config.substitutions.append(("%no-fatal-warnings-lld-watchos", lld_watchos))

config.substitutions.append(("%no-arg-lld", "ld64.lld"))

# Since most of our tests are written around x86_64, we give this platform the
# shortest substitution of "%lld".
lld = (
    "ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot "
    + os.path.join(config.test_source_root, "MachO", "Inputs", "MacOSX.sdk")
)
config.substitutions.append(("%lld", lld + " -lSystem -fatal_warnings"))
config.substitutions.append(("%no-lsystem-lld", lld + " -fatal_warnings"))
config.substitutions.append(("%no-fatal-warnings-lld", lld + " -lSystem"))