Skip to content

Commit 50c8942

Browse files
committed
Add -parse-stdlib to macOS target test so it builds on Linux.
1 parent 88cffc1 commit 50c8942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/DebugInfo/compiler-flags-macosx.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Check that the sdk and resource dirs end up in the debug info if we build for
22
// a Darwin target and set the RC_DEBUG_OPTIONS environment variable. This
33
// matches the behavior found in Clang.
4-
// RUN: %swiftc_driver %s -emit-ir -g -target x86_64-apple-macosx10.10 -o - | %FileCheck %s
5-
// RUN: RC_DEBUG_OPTIONS=1 %swiftc_driver %s -emit-ir -g -target x86_64-apple-macosx10.10 -o - | %FileCheck --check-prefix CHECK-VAR-SET %s
4+
// RUN: %swiftc_driver %s -emit-ir -g -target x86_64-apple-macosx10.10 -parse-stdlib -module-name scratch -o - | %FileCheck %s
5+
// RUN: RC_DEBUG_OPTIONS=1 %swiftc_driver %s -emit-ir -g -target x86_64-apple-macosx10.10 -parse-stdlib -module-name scratch -o - | %FileCheck --check-prefix CHECK-VAR-SET %s
66
// CHECK: !DICompileUnit({{.*}} producer: "{{(Apple )?Swift version [^"]+}}"
77
// CHECK-NOT: flags: "
88
// CHECK-VAR-SET: !DICompileUnit({{.*}}producer: "{{(Apple )?Swift version [^"]+}}"

0 commit comments

Comments
 (0)