diff --git a/lib/gyp/platform/win.js b/lib/gyp/platform/win.js index 0cc012b..fe1e09b 100644 --- a/lib/gyp/platform/win.js +++ b/lib/gyp/platform/win.js @@ -236,7 +236,7 @@ function linkerFlags(linker) { if (stack_reserve_size) { let stack_commit_size = linker.StackCommitSize || ''; if (stack_commit_size) stack_commit_size = ',' + stack_commit_size; - ldflags.push('/STACK' + stack_reserve_size + stack_commit_size); + ldflags.push('/STACK:' + stack_reserve_size + stack_commit_size); } ld('TerminalServerAware', { diff --git a/test/platform-win-test.js b/test/platform-win-test.js index 6cac22a..9abbbc7 100644 --- a/test/platform-win-test.js +++ b/test/platform-win-test.js @@ -31,7 +31,7 @@ describe('gyp.platform.win', () => { it('should preserve quotes', () => { assert.deepEqual( - win.adjustLibraries([ '"some path/lib1"', '-l"lib2"', + win.adjustLibraries([ '"some path/lib1"', '-l"lib2"', '-l"lib3.lib"', '"lib4.lib"' ]), [ '"some path/lib1.lib"', '"lib2.lib"', '"lib3.lib"', '"lib4.lib"' ]); }); @@ -175,7 +175,7 @@ describe('gyp.platform.win', () => { '/MAPINFO:EXPORTS', '/XXX', '/YYY', '/SUBSYSTEM:WINDOWS,7', - '/STACK100,200', + '/STACK:100,200', '/TSAWARE:NO', '/INCREMENTAL', '/BASE:1000',