Skip to content

Commit 8433874

Browse files
committed
IRGen: Use -disable-legacy-type-info in original-defined-attr-linker-directives-fail.swift test.
Prevents the following error from occurring when running the test on an arm64 macOS host: ``` error: IR generation failure: Cannot read legacy layout file at '.../swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-arm64/lib/swift/macosx/layouts-x86_64.yaml' ```
1 parent 1e49c3b commit 8433874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/IRGen/original-defined-attr-linker-directives-fail.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: not %target-swift-frontend -swift-version 4 -enforce-exclusivity=checked %s -emit-ir -module-name CurrentModule -D CURRENT_MODULE -previous-module-installname-map-file %t/nil.json >& %t/error.txt
77
// RUN: %FileCheck %s -check-prefix=CHECK-ERROR < %t/error.txt
88

9-
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.6 -swift-version 4 -enforce-exclusivity=checked %s -emit-ir -module-name CurrentModule -D CURRENT_MODULE -previous-module-installname-map-file %t/install-name.json | %FileCheck %s -check-prefix=CHECK-SYMBOLS-LOW-TARGET
9+
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.6 -swift-version 4 -enforce-exclusivity=checked %s -emit-ir -disable-legacy-type-info -module-name CurrentModule -D CURRENT_MODULE -previous-module-installname-map-file %t/install-name.json | %FileCheck %s -check-prefix=CHECK-SYMBOLS-LOW-TARGET
1010

1111
@available(OSX 10.8, *)
1212
@_originallyDefinedIn(module: "OriginalModule", macOS 10.10)

0 commit comments

Comments
 (0)