Skip to content

Commit

Permalink
try with LLVM on host
Browse files Browse the repository at this point in the history
  • Loading branch information
mukilan committed Dec 2, 2023
1 parent 2956f1d commit 6814ac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
run: sudo apt update && python3 ./mach bootstrap
# - name: Tidy
# run: python3 ./mach test-tidy --no-progress --all
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
- name: Release build (${{ matrix.arch }} ${{ inputs.production && 'without' || 'with' }} debug assertions)
run: |
export JAVA_HOME="${JAVA_HOME_17_X64}"
Expand Down
4 changes: 2 additions & 2 deletions python/servo/command_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,10 @@ def build_android_env_if_needed(self, env: Dict[str, str]):
env['OBJCOPY'] = to_ndk_bin("llvm-objcopy")
env['YASM'] = to_ndk_bin("yasm")
env['STRIP'] = to_ndk_bin("llvm-strip")
env['LLVM_CONFIG_PATH'] = to_ndk_bin("llvm-config")
#env['LLVM_CONFIG_PATH'] = to_ndk_bin("llvm-config")
env['HARFBUZZ_SYS_NO_PKG_CONFIG'] = "true"
env['RUST_FONTCONFIG_DLOPEN'] = "on"
env["BINDGEN_EXTRA_CLANG_ARGS"] = f"--sysroot={env['ANDROID_SYSROOT']} -I{arch_include}"
#env["BINDGEN_EXTRA_CLANG_ARGS"] = f"--sysroot={env['ANDROID_SYSROOT']} -I{arch_include}"
# A cheat-sheet for some of the build errors caused by getting the search path wrong...
#
# fatal error: 'limits' file not found
Expand Down

0 comments on commit 6814ac5

Please sign in to comment.