Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: pnacl/build.sh

Issue 1082953002: Add configure/CMake flags for conditionally building subzero targets. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Update LLVM too Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pnacl/COMPONENT_REVISIONS ('k') | toolchain_build/toolchain_build_pnacl.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pnacl/build.sh
diff --git a/pnacl/build.sh b/pnacl/build.sh
index 904a181f4b961cdf19656d0bcafbecfbbe332e56..25fef2276b1a41045dbf2a0fa1ddbde20930702f 100755
--- a/pnacl/build.sh
+++ b/pnacl/build.sh
@@ -304,12 +304,25 @@ llvm-sb-configure() {
local objdir="${LLVM_SB_OBJDIR}"
local installdir="$(GetTranslatorInstallDir ${arch})"
local targets=""
+ local subzero_targets=""
# For LLVM, "x86" brings in both i686 and x86_64.
case ${arch} in
- i686) targets=x86 ;;
- x86_64) targets=x86 ;;
- armv7) targets=arm ;;
- universal) targets=x86,arm ;;
+ i686)
+ targets=x86
+ subzero_targets=X8632
+ ;;
+ x86_64)
+ targets=x86
+ subzero_targets=X8664
+ ;;
+ armv7)
+ targets=arm
+ subzero_targets=ARM32
+ ;;
+ universal)
+ targets=x86,arm
+ subzero_targets=X8632,ARM32
+ ;;
esac
spushd "${objdir}"
@@ -328,6 +341,7 @@ llvm-sb-configure() {
--prefix=${installdir} \
--host=nacl \
--enable-targets=${targets} \
+ --enable-subzero-targets=${subzero_targets} \
--disable-assertions \
--enable-pic=no \
--enable-static \
« no previous file with comments | « pnacl/COMPONENT_REVISIONS ('k') | toolchain_build/toolchain_build_pnacl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698