-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9c36e8
commit 8ca3605
Showing
6 changed files
with
50 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 33 additions & 4 deletions
37
packages/libllvm/tools-clang-lib-Driver-ToolChains-Linux.cpp.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,40 @@ | ||
--- ../cache/cfe-6.0.0.src/lib/Driver/ToolChains/Linux.cpp 2017-12-11 18:14:51.000000000 +0000 | ||
+++ ./tools/clang/lib/Driver/ToolChains/Linux.cpp 2018-03-13 03:32:36.142985756 +0000 | ||
@@ -816,7 +816,7 @@ | ||
--- ./tools/clang/lib/Driver/ToolChains/Linux.cpp.orig 2019-02-16 23:00:22.943658132 +0000 | ||
+++ ./tools/clang/lib/Driver/ToolChains/Linux.cpp 2019-02-16 23:15:04.826482282 +0000 | ||
@@ -652,8 +652,27 @@ | ||
return; | ||
|
||
if (!DriverArgs.hasArg(options::OPT_nostdlibinc)) | ||
+ if (getTriple().isAndroid()) { | ||
+ switch (getTriple().getArch()) { | ||
+ case llvm::Triple::x86_64: | ||
+ addSystemInclude(DriverArgs, CC1Args, SysRoot + "@TERMUX_PREFIX@/include/x86_64-linux-android"); | ||
+ break; | ||
+ case llvm::Triple::x86: | ||
+ addSystemInclude(DriverArgs, CC1Args, SysRoot + "@TERMUX_PREFIX@/include/i686-linux-android"); | ||
+ break; | ||
+ case llvm::Triple::aarch64: | ||
+ addSystemInclude(DriverArgs, CC1Args, SysRoot + "@TERMUX_PREFIX@/include/aarch64-linux-android"); | ||
+ break; | ||
+ case llvm::Triple::arm: | ||
+ case llvm::Triple::thumb: | ||
+ addSystemInclude(DriverArgs, CC1Args, SysRoot + "@TERMUX_PREFIX@/include/arm-linux-androideabi"); | ||
+ break; | ||
+ default: | ||
+ break; | ||
+ } | ||
+ | ||
addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/local/include"); | ||
- | ||
+ } | ||
if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) { | ||
SmallString<128> P(D.ResourceDir); | ||
llvm::sys::path::append(P, "include"); | ||
@@ -968,7 +987,7 @@ | ||
} | ||
|
||
bool Linux::isPIEDefault() const { | ||
- return (getTriple().isAndroid() && !getTriple().isAndroidVersionLT(16)) || | ||
+ return getTriple().isAndroid() || | ||
+ return getTriple().isAndroid() || | ||
getTriple().isMusl() || getSanitizerArgs().requiresPIE(); | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters