mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 02:26:05 +00:00

Clang test Driver/macos-apple-silicon-slice-link-libs-darwin-only.cpp assumes the target is darwin when the host is darwin which is not necessarily the case, causing the test to fail when it is not. This commit adds a -triple argument to the clang invocation to ensure the target is darwin. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D94396
7 lines
365 B
C++
7 lines
365 B
C++
// RUN: %clang -### -target arm64-apple-darwin -arch arm64 -mmacosx-version-min=10.7 %s 2>&1 | FileCheck -check-prefix=ARM64-10_7 %s
|
|
// RUN: %clang -### -target x86_64-apple-darwin10 -arch x86_64 -mmacosx-version-min=10.7 %s 2>&1 | FileCheck -check-prefix=x86_64-10_7 %s
|
|
// REQUIRES: system-darwin
|
|
|
|
// ARM64-10_7-NOT: -lcrt1.10.6.o
|
|
// x86_64-10_7: -lcrt1.10.6.o
|