mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43:39 +01:00
Update mozjs_sys to include cross-compilation fixes.
This commit is contained in:
parent
a07c718895
commit
2544db1e79
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