Uh oh!
There was an error while loading. Please reload this page.
fix: Address issues encountered while building on Windows+Cygwin environments - #1817
fix: Address issues encountered while building on Windows+Cygwin environments#1817joquijada wants to merge 1 commit into
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Use new style exceptions so that it works in both Python 2 and 3 Refs: nodejs#1817 (comment)
Use new style exceptions so that it works in both Python 2 and 3. Doing the same as previous commit, but in a different file. Refs: nodejs#1817 (comment)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| // Do this to keep Cygwin environments happy, else the unescaped '\' gets eaten up, | ||
| // resulting in bad paths, Ex c:parentFolderfolderanotherFolder instead of c:\parentFolder\folder\anotherFolder | ||
| nodeLibFile = nodeLibFile.replace(/\\/g, '\\\\') |
There was a problem hiding this comment.
I don't think this is a windows-only branch so to be safe maybe this should only be invoked if windows
There was a problem hiding this comment.
Do posix paths contain backslashes?
There was a problem hiding this comment.
$ touch 'foo\\bar'
$ ls -al foo\\\\bar
-rw-r--r-- 1 rvagg staff 0 Jul 15 16:56 'foo\\bar'
There was a problem hiding this comment.
This still needs to be addressed @joquijada. I think can you wrap this in a conditional for Cygwin or at least Windows
Uh oh!
There was an error while loading. Please reload this page.
joquijada
commented
Jul 16, 2019
I wasn't sure if I should/can write tests for this. |
ba0e3b5 to
908b9b0CompareFYI, squashed the commits into 1 via |
refack
commented
Jul 26, 2019
908b9b0 to
8770043Comparervagg
commented
Jul 29, 2019
@refack would there be any objections to adding it back in to GYP3 if someone wants to put in the work? I assume it might not be too hard to figure out the changes that impact support and improve them for Cygwin. |
rvagg
commented
Aug 1, 2019
Landed in c7f1bca after some whitespace changes and commit message edits. @joquijada the caveat above about the coming GYP upgrade is important because these changes aren't necessarily going to be carried over and we don't Cygwin in any of our testing paths. You may need to come back and help get us sorted out but https://github.com/refack/GYP will probably be where GYP changes need to go. |
joquijada
commented
Aug 1, 2019
@rvagg Will check it out |
Address problems described here that were encountered during
npm rebuildof modules that depend onnode-gypto compile C/C++ code.Fixes: #1782
Refs: https://github.com/joquijada/windows-node-js-node-gyp
Checklist
npm install && npm testpassesDescription of change