Skip to content

Commit 49e4a9f

Browse files
authored
Merge pull request #82956 from xymus/cdecl-fix-clang-target
Tests: Add missing -target clang flags in `@cdecl` Interpreter tests
2 parents f1a1bb0 + e63a1de commit 49e4a9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Interpreter/cdecl_implementation_run.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: %target-codesign %t/%target-library-name(Lib)
1212

1313
/// Build a C client against cdecl.h.
14-
// RUN: %clang-no-modules %t/Client.c -o %t/a.out \
14+
// RUN: %clang-no-modules %t/Client.c -o %t/a.out -target %target-triple \
1515
// RUN: -I %clang-include-dir -Werror -isysroot %sdk \
1616
// RUN: -I %t -l Lib -L %t %target-rpath(%t)
1717
// RUN: %target-codesign %t/a.out

test/Interpreter/cdecl_official_run.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// RUN: -enable-experimental-feature CDecl
99

1010
/// Build and run a binary from Swift and C code.
11-
// RUN: %clang-no-modules -c %t/Client.c -o %t/Client.o \
11+
// RUN: %clang-no-modules -c %t/Client.c -o %t/Client.o -target %target-triple \
1212
// RUN: -I %t -I %clang-include-dir -Werror -isysroot %sdk
1313
// RUN: %target-build-swift %t/Lib.swift %t/Client.o -O -o %t/a.out \
1414
// RUN: -enable-experimental-feature CDecl -parse-as-library

0 commit comments

Comments
 (0)