File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 9393 ['OS=="linux"' , {
9494 'variables' : {
9595 'sysroot%' : '<!(node -p "process.env.SYSROOT_PATH || \' \' ")' ,
96+ 'target_arch%' : '<!(node -p "process.env.npm_config_arch || process.arch")' ,
9697 },
9798 'conditions' : [
9899 ['sysroot!=""' , {
99- 'cflags' : ['--sysroot=<(sysroot)' ],
100- 'ldflags' : ['--sysroot=<(sysroot)' ],
100+ 'conditions' : [
101+ ['target_arch=="x64"' , {
102+ 'cflags' : [
103+ '--sysroot=<(sysroot)' ,
104+ '-nostdinc++' ,
105+ '-isystem<(sysroot)/usr/include/c++/10' ,
106+ '-isystem<(sysroot)/usr/include/x86_64-linux-gnu/c++/10' ,
107+ '-isystem<(sysroot)/usr/include/c++/10/backward'
108+ ],
109+ 'ldflags' : ['--sysroot=<(sysroot)' ],
110+ }],
111+ ['target_arch=="arm64"' , {
112+ 'cflags' : [
113+ '--sysroot=<(sysroot)' ,
114+ '-nostdinc++' ,
115+ '-isystem<(sysroot)/usr/include/c++/10' ,
116+ '-isystem<(sysroot)/usr/include/aarch64-linux-gnu/c++/10' ,
117+ '-isystem<(sysroot)/usr/include/c++/10/backward'
118+ ],
119+ 'ldflags' : ['--sysroot=<(sysroot)' ],
120+ }]
121+ ]
101122 }]
102123 ]
103124 }]
You can’t perform that action at this time.
0 commit comments