Skip to content

Commit

Permalink
Update build script to support cross-compiling for ARM
Browse files Browse the repository at this point in the history
In addition to the sysroot change, this modification allows node to be cross-compiled for ARM when built using clang.
  • Loading branch information
llamasoft authored and rogerwang committed Feb 20, 2020
1 parent d286c80 commit be2fc16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,10 @@
'cflags': [ '--sysroot=<(sysroot)', '-nostdinc++', '-isystem<(DEPTH)/buildtools/third_party/libc++/trunk/include', '-isystem<(DEPTH)/buildtools/third_party/libc++abi/trunk/include' ],
'ldflags': [ '--sysroot=<(sysroot)','<!(<(DEPTH)/content/nw/tools/sysroot_ld_path.sh <(sysroot))', '-nostdlib++' ],
}],
[ 'OS=="linux" and target_arch=="arm"', {
'cflags': [ '--target=arm-linux-gnueabihf' ],
'ldflags': [ '--target=arm-linux-gnueabihf' ],
}],
[ 'target_arch=="ppc" and OS!="aix"', {
'cflags': [ '-m32' ],
'ldflags': [ '-m32' ],
Expand Down

0 comments on commit be2fc16

Please sign in to comment.