Skip to content

Commit

Permalink
Update llvm to 19.1.5 (#1431)
Browse files Browse the repository at this point in the history
* update to llvm 19.1.5
  • Loading branch information
anutosh491 authored Dec 3, 2024
1 parent 26d9845 commit 453e5d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 56 deletions.
13 changes: 9 additions & 4 deletions recipes/recipes_emscripten/llvm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export LDFLAGS=""


# Configure step
emcmake cmake ${CMAKE_ARGS} -S ../llvm -B . \
cmake ${CMAKE_ARGS} -S ../llvm -B . \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
Expand All @@ -22,13 +22,18 @@ emcmake cmake ${CMAKE_ARGS} -S ../llvm -B . \
-DLLVM_ENABLE_PROJECTS="clang;lld" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DLLVM_ENABLE_THREADS=OFF \
-DCMAKE_CXX_FLAGS="-Dwait4=__syscall_wait4 -isystem $EMSCRIPTEN_FORGE_EMSDK_DIR/upstream/emscripten/cache/sysroot/include/c++/v1"
-DLLVM_ENABLE_ZSTD=OFF \
-DLLVM_ENABLE_LIBXML2=OFF \
-DCLANG_ENABLE_STATIC_ANALYZER=OFF \
-DCLANG_ENABLE_ARCMT=OFF \
-DCLANG_ENABLE_BOOTSTRAP=OFF \
-DCMAKE_CXX_FLAGS="-Dwait4=__syscall_wait4"

# Build step
emmake make -j4
make -j4

# Install step
emmake make install
make install

# Copy all files with ".wasm" extension to $PREFIX/bin
cp $SRC_DIR/build/bin/*.wasm $PREFIX/bin

This file was deleted.

7 changes: 3 additions & 4 deletions recipes/recipes_emscripten/llvm/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
context:
version: 19.1.4
version: 19.1.5

package:
name: llvm
Expand All @@ -8,13 +8,12 @@ package:
source:
url: https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-${{ version
}}.tar.gz
sha256: 010e1fd3cabee8799bd2f8a6fbc68f28207494f315cf9da7057a2820f79fd531
sha256: e2204b9903cd9d7ee833a2f56a18bef40a33df4793e31cc090906b32cbd8a1f5
patches:
- patches/cross_compile.patch
- patches/skip_undefined_symbols_at_link_step.patch

build:
number: 2
number: 0

requirements:
build:
Expand Down

0 comments on commit 453e5d4

Please sign in to comment.