File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 128
128
default = None ,
129
129
help = 'use the prefix to look for pre-installed headers' )
130
130
131
+ parser .add_argument ('--use_clang' ,
132
+ action = 'store_true' ,
133
+ dest = 'use_clang' ,
134
+ default = None ,
135
+ help = 'use clang instead of gcc' )
136
+
131
137
parser .add_argument ('--dest-os' ,
132
138
action = 'store' ,
133
139
dest = 'dest_os' ,
@@ -1358,6 +1364,10 @@ def configure_node(o):
1358
1364
o ['variables' ]['target_arch' ] = target_arch
1359
1365
o ['variables' ]['node_byteorder' ] = sys .byteorder
1360
1366
1367
+ # Allow overriding the compiler - needed by embedders.
1368
+ if options .use_clang :
1369
+ o ['variables' ]['clang' ] = 1
1370
+
1361
1371
cross_compiling = (options .cross_compiling
1362
1372
if options .cross_compiling is not None
1363
1373
else target_arch != host_arch )
You can’t perform that action at this time.
0 commit comments