From ab753fcde40b28248172c552ce2b1f23eddfc9f4 Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Fri, 12 Oct 2018 16:38:39 -1000 Subject: Update more packages --- data/llvm-clang/_metadata/conflicts | 1 + data/llvm-clang/_metadata/description | 1 + data/llvm-clang/_metadata/license | 1 + data/llvm-clang/_metadata/maintainer | 1 + data/llvm-clang/_metadata/name | 1 + data/llvm-clang/_metadata/priority | 1 + data/llvm-clang/_metadata/provides | 1 + data/llvm-clang/_metadata/replaces | 1 + data/llvm-clang/_metadata/role | 1 + data/llvm-clang/_metadata/section | 1 + data/llvm-clang/_metadata/tags | 1 + data/llvm-clang/_metadata/version | 1 + data/llvm-clang/iphonesdkpath.diff | 46 +++++++++++++++++++++++ data/llvm-clang/make.sh | 40 ++++++++++++++++++++ data/llvm-clang/swift-clang-4.1.3-RELEASE.tar.gz | Bin 0 -> 16439070 bytes data/llvm-clang/swift-llvm-4.1.3-RELEASE.tar.gz | Bin 0 -> 35324047 bytes 16 files changed, 98 insertions(+) create mode 100644 data/llvm-clang/_metadata/conflicts create mode 100644 data/llvm-clang/_metadata/description create mode 120000 data/llvm-clang/_metadata/license create mode 120000 data/llvm-clang/_metadata/maintainer create mode 100644 data/llvm-clang/_metadata/name create mode 100644 data/llvm-clang/_metadata/priority create mode 100644 data/llvm-clang/_metadata/provides create mode 100644 data/llvm-clang/_metadata/replaces create mode 100644 data/llvm-clang/_metadata/role create mode 100644 data/llvm-clang/_metadata/section create mode 100644 data/llvm-clang/_metadata/tags create mode 100644 data/llvm-clang/_metadata/version create mode 100644 data/llvm-clang/iphonesdkpath.diff create mode 100644 data/llvm-clang/make.sh create mode 100644 data/llvm-clang/swift-clang-4.1.3-RELEASE.tar.gz create mode 100644 data/llvm-clang/swift-llvm-4.1.3-RELEASE.tar.gz (limited to 'data/llvm-clang') diff --git a/data/llvm-clang/_metadata/conflicts b/data/llvm-clang/_metadata/conflicts new file mode 100644 index 000000000..08f4c1128 --- /dev/null +++ b/data/llvm-clang/_metadata/conflicts @@ -0,0 +1 @@ +org.coolstar.llvm-clang64, org.coolstar.llvm-clang diff --git a/data/llvm-clang/_metadata/description b/data/llvm-clang/_metadata/description new file mode 100644 index 000000000..bc38f718d --- /dev/null +++ b/data/llvm-clang/_metadata/description @@ -0,0 +1 @@ +A toolkit for the construction of highly optimized compilers, optimizers, and runtime environments and a compiler front-end for the C family of languages (C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM compiler infrastructure project. diff --git a/data/llvm-clang/_metadata/license b/data/llvm-clang/_metadata/license new file mode 120000 index 000000000..eea9de8d1 --- /dev/null +++ b/data/llvm-clang/_metadata/license @@ -0,0 +1 @@ +../../../licenses/bsd \ No newline at end of file diff --git a/data/llvm-clang/_metadata/maintainer b/data/llvm-clang/_metadata/maintainer new file mode 120000 index 000000000..573d7ebef --- /dev/null +++ b/data/llvm-clang/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/sbingner \ No newline at end of file diff --git a/data/llvm-clang/_metadata/name b/data/llvm-clang/_metadata/name new file mode 100644 index 000000000..8e28c177c --- /dev/null +++ b/data/llvm-clang/_metadata/name @@ -0,0 +1 @@ +LLVM Clang diff --git a/data/llvm-clang/_metadata/priority b/data/llvm-clang/_metadata/priority new file mode 100644 index 000000000..134d9bc32 --- /dev/null +++ b/data/llvm-clang/_metadata/priority @@ -0,0 +1 @@ +optional diff --git a/data/llvm-clang/_metadata/provides b/data/llvm-clang/_metadata/provides new file mode 100644 index 000000000..08f4c1128 --- /dev/null +++ b/data/llvm-clang/_metadata/provides @@ -0,0 +1 @@ +org.coolstar.llvm-clang64, org.coolstar.llvm-clang diff --git a/data/llvm-clang/_metadata/replaces b/data/llvm-clang/_metadata/replaces new file mode 100644 index 000000000..08f4c1128 --- /dev/null +++ b/data/llvm-clang/_metadata/replaces @@ -0,0 +1 @@ +org.coolstar.llvm-clang64, org.coolstar.llvm-clang diff --git a/data/llvm-clang/_metadata/role b/data/llvm-clang/_metadata/role new file mode 100644 index 000000000..8d0320866 --- /dev/null +++ b/data/llvm-clang/_metadata/role @@ -0,0 +1 @@ +developer diff --git a/data/llvm-clang/_metadata/section b/data/llvm-clang/_metadata/section new file mode 100644 index 000000000..e0eb96881 --- /dev/null +++ b/data/llvm-clang/_metadata/section @@ -0,0 +1 @@ +Development diff --git a/data/llvm-clang/_metadata/tags b/data/llvm-clang/_metadata/tags new file mode 100644 index 000000000..ad5d50831 --- /dev/null +++ b/data/llvm-clang/_metadata/tags @@ -0,0 +1 @@ +purpose::console diff --git a/data/llvm-clang/_metadata/version b/data/llvm-clang/_metadata/version new file mode 100644 index 000000000..a1ef0cae1 --- /dev/null +++ b/data/llvm-clang/_metadata/version @@ -0,0 +1 @@ +5.0.2 diff --git a/data/llvm-clang/iphonesdkpath.diff b/data/llvm-clang/iphonesdkpath.diff new file mode 100644 index 000000000..ace9daa10 --- /dev/null +++ b/data/llvm-clang/iphonesdkpath.diff @@ -0,0 +1,46 @@ +diff -ur swift-llvm-swift-4.1.3-RELEASE/tools/clang/lib/Frontend/InitHeaderSearch.cpp swift-llvm-swift-4.1.3-RELEASE+iPhone/tools/clang/lib/Frontend/InitHeaderSearch.cpp +--- swift-llvm-swift-4.1.3-RELEASE/tools/clang/lib/Frontend/InitHeaderSearch.cpp 2018-03-17 03:34:33.000000000 -1000 ++++ swift-llvm-swift-4.1.3-RELEASE+iPhone/tools/clang/lib/Frontend/InitHeaderSearch.cpp 2018-09-17 12:26:55.000000000 -1000 +@@ -348,6 +348,9 @@ + } + default: + AddPath("/usr/include", ExternCSystem, false); ++ if (!HasSysroot) { ++ AddPath("/usr/share/SDKs/iPhoneOS.sdk/usr/include", ExternCSystem, false); ++ } + break; + } + } +@@ -385,11 +388,21 @@ + "arm-apple-darwin10", "v7", "", triple); + AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.2.1", + "arm-apple-darwin10", "v6", "", triple); ++ if (!HasSysroot) { ++ AddGnuCPlusPlusIncludePaths("/usr/share/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1", ++ "arm-apple-darwin10", "v7", "", triple); ++ AddGnuCPlusPlusIncludePaths("/usr/share/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1", ++ "arm-apple-darwin10", "v6", "", triple); ++ } + break; + + case llvm::Triple::aarch64: + AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.2.1", + "arm64-apple-darwin10", "", "", triple); ++ if (!HasSysroot) { ++ AddGnuCPlusPlusIncludePaths("/usr/share/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1", ++ "arm64-apple-darwin10", "", "", triple); ++ } + break; + } + return; +@@ -483,6 +496,10 @@ + // Add the default framework include paths on Darwin. + if (HSOpts.UseStandardSystemIncludes) { + if (triple.isOSDarwin()) { ++ if (!HasSysroot) { ++ AddPath("/usr/share/SDKs/iPhoneOS.sdk/System/Library/Frameworks", System, true); ++ AddPath("/usr/share/SDKs/iPhoneOS.sdk/Library/Frameworks", System, true); ++ } + AddPath("/System/Library/Frameworks", System, true); + AddPath("/Library/Frameworks", System, true); + } diff --git a/data/llvm-clang/make.sh b/data/llvm-clang/make.sh new file mode 100644 index 000000000..bb215aef8 --- /dev/null +++ b/data/llvm-clang/make.sh @@ -0,0 +1,40 @@ +pkg:extract +cd swift-llvm-swift* +mv ../swift-clang-swift* tools/clang +pkg:patch +mkdir native +cd native +MACOSX_DEPLOYMENT_TARGET="$(sw_vers -productVersion | sed -e 's/\.[0-9]*$//')" CC="$(xcrun -f clang)" CXX="$(xcrun -f clang++)" cmake -j16 -DCMAKE_INSTALL_NAME_DIR="/usr/local/lib" -DCMAKE_INSTALL_LIBDIR="local/lib" -DLLVM_BUILD_LLVM_DYLIB=ON -DCMAKE_BUILD_TYPE=RELEASE -DLLVM_INCLUDE_TESTS=OFF .. +make -j16 llvm-tblgen clang-tblgen +cd .. +mkdir build +cd build + +cat >iphoneos_toolchain.cmake <