mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43:39 +01:00
Auto merge of #21071 - jdm:mozjs-android, r=ajeffrey
Update mozjs_sys to include cross-compilation fixes. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20958 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21071) <!-- Reviewable:end -->
This commit is contained in:
commit
132bf17e87
2 changed files with 10 additions and 6 deletions
|
@ -330,14 +330,18 @@ class MachCommands(CommandBase):
|
|||
env['ANDROID_NDK'], "sources", "cxx-stl", "llvm-libc++", "libcxx", "include")
|
||||
cxxabi_include = path.join(
|
||||
env['ANDROID_NDK'], "sources", "cxx-stl", "llvm-libc++abi", "libcxxabi", "include")
|
||||
sysroot_include = path.join(
|
||||
env['ANDROID_SYSROOT'], "usr", "include")
|
||||
env['HOST_CFLAGS'] = ''
|
||||
env['CFLAGS'] = ' '.join([
|
||||
"--sysroot", env['ANDROID_SYSROOT'],
|
||||
"--sysroot=" + env['ANDROID_SYSROOT'],
|
||||
"-I" + support_include])
|
||||
env['CXXFLAGS'] = ' '.join([
|
||||
"--sysroot", env['ANDROID_SYSROOT'],
|
||||
"--sysroot=" + env['ANDROID_SYSROOT'],
|
||||
"-I" + support_include,
|
||||
"-I" + cxx_include,
|
||||
"-I" + cxxabi_include])
|
||||
"-I" + cxxabi_include,
|
||||
"-I" + sysroot_include])
|
||||
env["NDK_ANDROID_VERSION"] = android_platform.replace("android-", "")
|
||||
env['CPPFLAGS'] = ' '.join(["--sysroot", env['ANDROID_SYSROOT']])
|
||||
env["CMAKE_ANDROID_ARCH_ABI"] = self.config["android"]["lib"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue