summaryrefslogtreecommitdiff
path: root/data/llvm-clang
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-10-12 16:38:39 -1000
committerSam Bingner <sam@bingner.com>2018-10-12 16:38:39 -1000
commitab753fcde40b28248172c552ce2b1f23eddfc9f4 (patch)
tree2ff2724ef77294878f91b528843a0f0b6dba5462 /data/llvm-clang
parent295030d5719c3af352cfc5394b8ce13e3a1e0fb9 (diff)
Update more packages
Diffstat (limited to 'data/llvm-clang')
-rw-r--r--data/llvm-clang/_metadata/conflicts1
-rw-r--r--data/llvm-clang/_metadata/description1
l---------data/llvm-clang/_metadata/license1
l---------data/llvm-clang/_metadata/maintainer1
-rw-r--r--data/llvm-clang/_metadata/name1
-rw-r--r--data/llvm-clang/_metadata/priority1
-rw-r--r--data/llvm-clang/_metadata/provides1
-rw-r--r--data/llvm-clang/_metadata/replaces1
-rw-r--r--data/llvm-clang/_metadata/role1
-rw-r--r--data/llvm-clang/_metadata/section1
-rw-r--r--data/llvm-clang/_metadata/tags1
-rw-r--r--data/llvm-clang/_metadata/version1
-rw-r--r--data/llvm-clang/iphonesdkpath.diff46
-rw-r--r--data/llvm-clang/make.sh40
-rw-r--r--data/llvm-clang/swift-clang-4.1.3-RELEASE.tar.gzbin0 -> 16439070 bytes
-rw-r--r--data/llvm-clang/swift-llvm-4.1.3-RELEASE.tar.gzbin0 -> 35324047 bytes
16 files changed, 98 insertions, 0 deletions
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 <<EOF
+set(CMAKE_SYSTEM_NAME Darwin) # Tell CMake we're cross-compiling
+set(CMAKE_CROSSCOMPILING true)
+#include(CMakeForceCompiler)
+# Prefix detection only works with compiler id "GNU"
+# CMake will look for prefixed g++, cpp, ld, etc. automatically
+set(CMAKE_SYSTEM_PROCESSOR aarch64)
+set(triple ${PKG_TARG})
+set(CMAKE_FIND_ROOT_PATH $(echo ${PKG_PATH} | sed -e s/:/' '/g))
+set(CMAKE_LIBRARY_PATH $(echo ${LIBRARY_PATH} | sed -e s/:/' '/g))
+set(CMAKE_INCLUDE_PATH $(echo ${INCLUDE_PATH} | sed -e s/:/' '/g))
+set(CMAKE_C_COMPILER ${PKG_TARG}-gcc)
+set(CMAKE_CXX_COMPILER ${PKG_TARG}-g++)
+set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+EOF
+
+unset MACOSX_DEPLOYMENT_TARGET
+cmake -j32 -DCMAKE_TOOLCHAIN_FILE=iphoneos_toolchain.cmake -DCMAKE_INSTALL_NAME_DIR="/usr/local/lib" -DCMAKE_INSTALL_LIBDIR="local/lib" -DCMAKE_INSTALL_RPATH="/usr/" -DCMAKE_OSX_SYSROOT="${PKG_ROOT}" -DCMAKE_INSTALL_PREFIX="/usr/" -DLLVM_INCLUDE_TESTS=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_SYSTEM_NAME=Darwin -DLLVM_TABLEGEN="$(pwd)/../native/bin/llvm-tblgen" -DCLANG_TABLEGEN="$(pwd)/../native/bin/clang-tblgen" -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_DEFAULT_TARGET_TRIPLE="$(echo ${PKG_TARG} | sed -e s/aarch64/arm64/ -e 's/darwin.*/darwin/')" ..
+
+make -j32
+pkg:install
+pkg: mkdir -p /usr/local/lib
+mv ${PKG_DEST}/usr/lib/*.dylib ${PKG_DEST}/usr/local/lib
+pkg: find /usr/lib -name '*.a' -exec rm {} +
+pkg: mkdir -p /usr/share/SDKs
+cd ..
diff --git a/data/llvm-clang/swift-clang-4.1.3-RELEASE.tar.gz b/data/llvm-clang/swift-clang-4.1.3-RELEASE.tar.gz
new file mode 100644
index 000000000..d4ea5a51f
--- /dev/null
+++ b/data/llvm-clang/swift-clang-4.1.3-RELEASE.tar.gz
Binary files differ
diff --git a/data/llvm-clang/swift-llvm-4.1.3-RELEASE.tar.gz b/data/llvm-clang/swift-llvm-4.1.3-RELEASE.tar.gz
new file mode 100644
index 000000000..795b66ce8
--- /dev/null
+++ b/data/llvm-clang/swift-llvm-4.1.3-RELEASE.tar.gz
Binary files differ