Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2964507
D25871.1739365319.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
909 B
Referenced Files
None
Subscribers
None
D25871.1739365319.diff
View Options
diff --git a/support/xhpast/Makefile b/support/xhpast/Makefile
--- a/support/xhpast/Makefile
+++ b/support/xhpast/Makefile
@@ -8,7 +8,7 @@
CPPFLAGS += -ggdb -DDEBUG
FLEXFLAGS += --debug
else
- CPPFLAGS += -O3 -minline-all-stringops
+ CPPFLAGS += -O3 $(shell ./bin/xhpast-generate-release-cppflags.php)
endif
ifdef PROFILE
diff --git a/support/xhpast/bin/xhpast-generate-release-cppflags.php b/support/xhpast/bin/xhpast-generate-release-cppflags.php
new file mode 100755
--- /dev/null
+++ b/support/xhpast/bin/xhpast-generate-release-cppflags.php
@@ -0,0 +1,15 @@
+#!/usr/bin/env php
+<?php
+
+// $arcanist_root = dirname(dirname(dirname(dirname(__FILE__))));
+// require_once $arcanist_root.'/support/init/init-script.php';
+
+$cppflags = '';
+$arch = php_uname('m');
+
+if ($arch == 'i386' || $arch == 'x86_64') {
+ $cppflags .= ' -minline-all-stringops ';
+}
+
+echo $cppflags;
+echo "\n";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 12, 13:01 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1165200
Default Alt Text
D25871.1739365319.diff (909 B)
Attached To
Mode
D25871: xhpast: Skip -minline-all-stringops on non-x86 architectures
Attached
Detach File
Event Timeline
Log In to Comment