Skip to content

Commit

Permalink
bump(libllvm): 16.0.6 to 17.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
finagolfin committed Oct 3, 2023
1 parent 68d2188 commit 099b94d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
9 changes: 4 additions & 5 deletions packages/libllvm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 3,10 @@ TERMUX_PKG_DESCRIPTION="Modular compiler and toolchain technologies library"
TERMUX_PKG_LICENSE="Apache-2.0, NCSA"
TERMUX_PKG_LICENSE_FILE="llvm/LICENSE.TXT"
TERMUX_PKG_MAINTAINER="@finagolfin"
LLVM_MAJOR_VERSION=16
TERMUX_PKG_VERSION=${LLVM_MAJOR_VERSION}.0.6
TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=ce5e71081d17ce9e86d7cbcfa28c4b04b9300f8fb7e78422b1feb6bc52c3028e
TERMUX_PKG_SRCURL=https://github.com/llvm/llvm-project/releases/download/llvmorg-$TERMUX_PKG_VERSION/llvm-project-$TERMUX_PKG_VERSION.src.tar.xz
LLVM_MAJOR_VERSION=17
TERMUX_PKG_VERSION=${LLVM_MAJOR_VERSION}.0.2
TERMUX_PKG_SHA256=351562b14d42fcefcbf00cc1f327680a1062bbbf67a1e1ca6acb64c473b06394
TERMUX_PKG_SRCURL=https://github.com/llvm/llvm-project/releases/download/llvmorg-$TERMUX_PKG_VERSION/llvm-project-${TERMUX_PKG_VERSION}.src.tar.xz
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_RM_AFTER_INSTALL="
bin/ld64.lld.darwin*
Expand Down
1 change: 1 addition & 0 deletions packages/libllvm/clang.subpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 22,7 @@ include/clang*
lib/clang/*/include/*.h
lib/clang/*/include/module.modulemap
lib/clang/*/include/cuda_wrappers/
lib/clang/*/include/llvm_libc_wrappers/
lib/clang/*/include/openmp_wrappers/
lib/clang/*/include/orc/
lib/clang/*/include/ppc_wrappers/
Expand Down
6 changes: 3 additions & 3 deletions packages/libllvm/cxx-libm.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 17,6 @@ index 2ad4509..4d0b060 100644
if (D.CCCIsCXX())
CmdArgs.push_back("-lm");
if (WantPthread && !isAndroid)
CmdArgs.push_back("-lpthread");

// LLVM support for atomics on 32-bit SPARC V8 is incomplete, so
// forcibly link with libatomic as a workaround.
// TODO: Issue #41880 and D118021.
11 changes: 6 additions & 5 deletions packages/libllvm/llvm-config.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 15,7 @@ Options:
--bindir Directory containing LLVM executables.
--includedir Directory containing LLVM headers.
--libdir Directory containing LLVM libraries.
--cmakedir Directory containing LLVM CMake modules.
--cppflags C preprocessor flags for files that include LLVM headers.
--cflags C compiler flags for files that include LLVM headers.
--cxxflags C compiler flags for files that include LLVM headers.
Expand Down Expand Up @@ -43,7 44,7 @@ prefix=@TERMUX_PREFIX@
has_rtti=NO
CPPFLAGS="-I${prefix}/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
CFLAGS="${CPPFLAGS} ${CFLAGS}"
CXXFLAGS="${CFLAGS} -std=c 17 -fno-exceptions"
CXXFLAGS="${CFLAGS} -std=c 17 -fno-exceptions -funwind-tables"
if [ "$has_rtti" != "YES" ]; then CXXFLAGS="$CXXFLAGS -fno-rtti"; fi
LDFLAGS="-L${prefix}/lib"
LIBFILE="${prefix}/lib/libLLVM-${version/.*/}.so"
Expand All @@ -54,8 55,8 @@ analysis arc arccodegen arcdesc arcdisassembler arcinfo arm armasmparser armcode
armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser \
avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader \
bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard codegen \
core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler \
cskyinfo debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview \
codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler \
cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview \
debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerparallel \
dwp engine executionengine extensions filecheck frontendhlsl frontendopenacc \
frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen \
Expand Down Expand Up @@ -110,10 111,10 @@ static_libs="-lLLVMWindowsManifest -lLLVMXRay -lLLVMLibDriver -lLLVMDlltoolDrive
-lLLVMMCA -lLLVMMCDisassembler -lLLVMLTO -lLLVMCFGuard -lLLVMFrontendOpenACC -lLLVMFrontendHLSL \
-lLLVMExtensions -lPolly -lPollyISL -lLLVMPasses -lLLVMCoroutines -lLLVMipo -lLLVMInstrumentation \
-lLLVMVectorize -lLLVMLinker -lLLVMFrontendOpenMP -lLLVMDWARFLinkerParallel -lLLVMDWARFLinker \
-lLLVMGlobalISel -lLLVMMIRParser -lLLVMAsmPrinter -lLLVMSelectionDAG -lLLVMCodeGen \
-lLLVMGlobalISel -lLLVMMIRParser -lLLVMAsmPrinter -lLLVMSelectionDAG -lLLVMCodeGen -lLLVMCodeGenTypes \
-lLLVMObjCARCOpts -lLLVMIRPrinter -lLLVMInterfaceStub -lLLVMFileCheck -lLLVMFuzzMutate \
-lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMAggressiveInstCombine -lLLVMTransformUtils \
-lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMSymbolize -lLLVMDebugInfoPDB \
-lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMSymbolize -lLLVMDebugInfoBTF -lLLVMDebugInfoPDB \
-lLLVMDebugInfoMSF -lLLVMDebugInfoDWARF -lLLVMObject -lLLVMTextAPI -lLLVMMCParser \
-lLLVMIRReader -lLLVMAsmParser -lLLVMMC -lLLVMDebugInfoCodeView -lLLVMBitReader \
-lLLVMFuzzerCLI -lLLVMCore -lLLVMRemarks -lLLVMBitstreamReader -lLLVMBinaryFormat \
Expand Down

0 comments on commit 099b94d

Please sign in to comment.