mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
src: add support for locally installed headers (#2964)
Some linux distros allow headers to be installed through tools like rpm. If the runtime sets process.config.variables.use_prefix_to_find_headers, look for matching headers based on the directory set for the prefix in process.config.variables.prefix Signed-off-by: Michael Dawson <midawson@redhat.com> Co-authored-by: Luke Karrys <luke@lukekarrys.com>
This commit is contained in:
parent
7705a22f31
commit
329873141f
3 changed files with 151 additions and 1 deletions
|
@ -11,6 +11,7 @@ const configure = requireInject('../lib/configure', {
|
|||
'graceful-fs': {
|
||||
openSync: () => 0,
|
||||
closeSync: () => {},
|
||||
existsSync: () => {},
|
||||
promises: {
|
||||
stat: async () => ({}),
|
||||
mkdir: async () => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue