Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can node-gyp build be made verbose?

Tags:

node-gyp

I would like to see compiler and linker flags being used while my node binding is getting built. How can I make node-gyp build run in verbose mode to achieve that. (similar to make VERBOSE=1 for cmake)

like image 943
Jayesh Avatar asked Mar 13 '13 23:03

Jayesh


People also ask

What is node-gyp build?

js native addon build tool. node-gyp is a cross-platform command-line tool written in Node. js for compiling native addon modules for Node. js. It contains a vendored copy of the gyp-next project that was previously used by the Chromium team, extended to support the development of Node.

Why is node-gyp needed?

node-gyp is a tool that enables the compilation of native add-on modules for Node in multiple platforms. It has widespread use and is included as a dependency in many NPM packages. On most systems, this isn't an issue, and installing node-gyp with the rest of your packages works as expected.

What is node-gyp folder?

node-gyp folder is the devDir of node-gyp (see relevant source code). This is where development header files are copied in order to perform the compilation of native modules. you can safely delete this directory, as it will be re-created the next time you'll install a module that needs node-gyp .


1 Answers

make V=1 helps me to have verbose V8 build. I didn't try node.js.

I don't know gyp very well, but I know it writes to out/Makefile, at the begging of Makefile

# The V=1 flag on command line makes us verbosely print command lines.
ifdef V
  quiet=
else
  quiet=quiet_
endif
like image 124
wcy Avatar answered Oct 24 '22 04:10

wcy