com php-src: Added --enable-asm on Windows: win32/build/config.w32 win32/build/confutils.js
| From: | Kalle Sommer Nielsen | Date: | Sun, 20 Nov 2016 21:49:34 +0000 |
| Subject: | com php-src: Added --enable-asm on Windows: win32/build/config.w32 win32/build/confutils.js | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95919@lists.php.net to get a copy of this message | ||
Commit: d711798813d6a1297716174de4382f42695a9e92
Author: Kalle Sommer Nielsen <kalle@php.net> Sun, 20 Nov 2016 22:49:34 +0100
Parents: 4f6f15358b824b11383f8b6f5c3560c7eeba6431
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d711798813d6a1297716174de4382f42695a9e92
Log:
Added --enable-asm on Windows
This argument is disabled by default, but if enabled it will create a sub directory in the output
directory called 'asm' and dump each compiled .c file's asm there
Changed paths:
M win32/build/config.w32
M win32/build/confutils.js
Diff:
diff --git a/win32/build/config.w32 b/win32/build/config.w32
index 188c1dc..15a485d 100644
--- a/win32/build/config.w32
+++ b/win32/build/config.w32
@@ -310,3 +310,6 @@ ARG_ENABLE("test-ini", "Enable automatic php.ini generation. The
test.ini will b
ARG_WITH("test-ini-ext-exclude", "Comma separated list of shared extensions to \
be excluded from the test.ini", "no");
+
+ARG_ENABLE('asm', 'Enable .asm output for .c files', 'no');
+setup_asm();
\ No newline at end of file
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index 804fe54..edb107d 100644
--- a/win32/build/confutils..js
+++ b/win32/build/confutils.js
@@ -3147,6 +3147,19 @@ function object_out_dir_option_handle()
}
}
+function setup_asm()
+{
+ if (PHP_ASM != 'no') {
+ if (!FSO.FolderExists(configure_subst..Item('BUILD_DIR') + '\\asm')) {
+ FSO.CreateFolder(configure_subst.Item('BUILD_DIR') + '\\asm');
+ }
+
+ ADD_FLAG('CFLAGS', ' /Fa' + configure_subst.Item('BUILD_DIR') +
'\\asm\\');
+
+ STDOUT.WriteLine('Enabling .asm output for .c files');
+ }
+}
+
function setup_zts_stuff()
{
if (PHP_ZTS == "yes") {