binding.gyp.cmake: Use node or nodejs depending on what the binary is called
This should fix npm builds on some recent ubuntu and debian images Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
@mraa_LIB_INCLUDE_DIRS_GYP@
|
@mraa_LIB_INCLUDE_DIRS_GYP@
|
||||||
],
|
],
|
||||||
'variables': {
|
'variables': {
|
||||||
"v8_version%": "<!(node -e 'console.log(process.versions.v8)' | sed 's/\.//g' | cut -c 1-5)",
|
"v8_version%": "<!(`command -v nodejs 2> /dev/null || echo node` -e 'console.log(process.versions.v8)' | sed 's/\.//g' | cut -c 1-5)",
|
||||||
"arch%": "<!(node -e 'console.log(process.arch)')"
|
"arch%": "<!(`command -v nodejs 2> /dev/null || echo node` -e 'console.log(process.arch)')"
|
||||||
},
|
},
|
||||||
'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
|
'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
|
||||||
'cflags!': [ '-fno-exceptions' ],
|
'cflags!': [ '-fno-exceptions' ],
|
||||||
|
|||||||
Reference in New Issue
Block a user