Skip to content

Commit

Permalink
fix-win: /STACK argument syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Feb 6, 2017
1 parent ea66223 commit a0e19f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/gyp/platform/win.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
4 changes: 2 additions & 2 deletions test/platform-win-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"' ]);
});
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a0e19f8

Please sign in to comment.