File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ async function buildDawnNode() {
3232 ...addElemIf ( ! isWin , '-GNinja' ) ,
3333 '-DDAWN_BUILD_NODE_BINDINGS=1' ,
3434 '-DDAWN_USE_X11=OFF' ,
35+ '-DCMAKE_BUILD_TYPE=Release' ,
3536 ...addElemIf ( isWin , '-DCMAKE_SYSTEM_VERSION=10.0.26100.0' ) ,
3637 ...addElemIf ( isMac , '-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' ) ,
3738 ] ) ;
@@ -46,7 +47,7 @@ async function buildDawnNode() {
4647}
4748
4849async function copyResult ( filepath , target ) {
49- const srcFilename = path . join ( ...[ filepath , ...addElemIf ( isWin , 'Debug ' ) , 'dawn.node' ] ) ;
50+ const srcFilename = path . join ( ...[ filepath , ...addElemIf ( isWin , 'Release ' ) , 'dawn.node' ] ) ;
5051 const dstFilename = path . join ( 'dist' , `${ target } .dawn.node` ) ;
5152 fs . mkdirSync ( path . dirname ( dstFilename ) , { recursive : true } ) ;
5253 fs . copyFileSync ( srcFilename , dstFilename ) ;
You can’t perform that action at this time.
0 commit comments