From f914721c240eba73be89b9b40b6d227ad98a0425 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 14 Oct 2014 19:45:14 +0200 Subject: [PATCH] build: add x32 support to gyp build This commit adds x32 support to the gyp build. Configure with: $ ./gyp_uv.py -Dtarget_arch=x32 --- README.md | 2 ++ common.gypi | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 2b917e2e..90263c32 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,8 @@ Run: $ ./gyp_uv.py -f make $ make -C out +Run `./gyp_uv.py -f make -Dtarget_arch=x32` to build [x32][] binaries. + ### OS X Run: diff --git a/common.gypi b/common.gypi index a0e0eea0..a8e2ef44 100644 --- a/common.gypi +++ b/common.gypi @@ -143,6 +143,10 @@ 'cflags': [ '-m32' ], 'ldflags': [ '-m32' ], }], + [ 'target_arch=="x32"', { + 'cflags': [ '-mx32' ], + 'ldflags': [ '-mx32' ], + }], [ 'OS=="linux"', { 'cflags': [ '-ansi' ], }],