File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ export const kConfig = process.env.CMAKE_BUILD_TYPE ?? 'Release';
99
1010export const isMac = process . platform === 'darwin' ;
1111export const isWin = process . platform === 'win32' ;
12+ export const isLinux = process . platform === 'linux' ;
Original file line number Diff line number Diff line change @@ -8,7 +8,5 @@ Promise.withResolvers = Promise.withResolvers ?? function() {
88 return o ;
99} ;
1010
11- if ( isWin || isMac ) {
12- await import ( './tests/basic-tests.js' ) ;
13- //await import('./tests/reference-count-tests.js');
14- }
11+ await import ( './tests/basic-tests.js' ) ;
12+ //await import('./tests/reference-count-tests.js');
Original file line number Diff line number Diff line change 11import { create , globals } from '../index.js' ;
2- import { isWin } from '../build/constants.js' ;
2+ import { isWin , isLinux } from '../build/constants.js' ;
33import { addElemIf } from '../build/utils.js' ;
44
55export function getGPU ( ) {
66 const options = [ ] ;
77 if ( ! ! process . env . WEBGPU_USE_CI_AVAILABLE_RENDERER ) {
88 options . push ( ...addElemIf ( isWin , 'adapter=Microsoft' ) ) ;
9+ options . push ( ...addElemIf ( isLinux , 'adapter=llvmpipe' ) ) ;
910 }
1011 return { gpu : create ( options ) , globals } ;
1112}
You can’t perform that action at this time.
0 commit comments