mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

The driver actually adds a default -mlinker-version, based on HOST_LINK_VERSION cmake variable. The tests should be explicit about which version they're using to trigger the right behavior.
13 lines
562 B
C
13 lines
562 B
C
// RUN: touch %t.o
|
|
|
|
// RUN: %clang -target x86_64-apple-macos10.13 -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=0 -### %t.o 2>&1 \
|
|
// RUN: | FileCheck %s
|
|
// RUN: env SDKROOT=%S/Inputs/MacOSX10.14.sdk %clang -target x86_64-apple-macos10.13.0.1 -mlinker-version=520 -### %t.o 2>&1 \
|
|
// RUN: | FileCheck %s
|
|
|
|
// CHECK: "-platform_version" "macos" "10.13.0" "10.14"
|
|
|
|
// RUN: %clang -target x86_64-apple-macos10.13 -mlinker-version=520 -### %t.o 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=NOSDK %s
|
|
// NOSDK: "-platform_version" "macos" "10.13.0" "0.0.0"
|