Skip to content

Commit 8f4fcd5

Browse files
committed
---
yaml --- r: 323483 b: refs/heads/tensorflow-next c: 0137dbe h: refs/heads/master i: 323481: 09e8b91 323479: 858b5a6
1 parent 4ce109f commit 8f4fcd5

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,4 +1461,4 @@ refs/heads/master-rebranch: 86e95c23aa0d37f24ec138b7853146c1cead2e40
14611461
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14621462
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14631463
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
1464-
refs/heads/tensorflow-next: b1dcb83b3d586ffa107e2ca7ce4d0e671a2b6c2c
1464+
refs/heads/tensorflow-next: 0137dbe19c859cc1bafcb091925c4f7cbe015f11

branches/tensorflow-next/lib/Frontend/CompilerInvocation.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ static void updateRuntimeLibraryPaths(SearchPathOptions &SearchPathOpts,
8989
if (!SearchPathOpts.SDKPath.empty()) {
9090
LibPath = SearchPathOpts.SDKPath;
9191
llvm::sys::path::append(LibPath, "usr", "lib", "swift");
92+
if (!Triple.isOSDarwin()) {
93+
llvm::sys::path::append(LibPath, getPlatformNameForTriple(Triple));
94+
llvm::sys::path::append(LibPath, swift::getMajorArchitectureName(Triple));
95+
}
9296
SearchPathOpts.RuntimeLibraryImportPaths.push_back(LibPath.str());
9397
}
9498
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// swift-interface-format-version: 1.0
2+
// swift-module-flags: -target x86_64-unknown-linux-android -disable-objc-interop -swift-version 5 -O -module-name Swift -parse-stdlib
3+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// RUN: %swift -target x86_64-unknown-linux-android -sdk %S/Inputs/android.sdk %s -typecheck

0 commit comments

Comments
 (0)