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 131
131
default = None ,
132
132
help = 'use the prefix to look for pre-installed headers' )
133
133
134
+ parser .add_argument ('--use_clang' ,
135
+ action = 'store_true' ,
136
+ dest = 'use_clang' ,
137
+ default = None ,
138
+ help = 'use clang instead of gcc' )
139
+
134
140
parser .add_argument ('--dest-os' ,
135
141
action = 'store' ,
136
142
dest = 'dest_os' ,
@@ -1407,6 +1413,10 @@ def configure_node(o):
1407
1413
o ['variables' ]['target_arch' ] = target_arch
1408
1414
o ['variables' ]['node_byteorder' ] = sys .byteorder
1409
1415
1416
+ # Allow overriding the compiler - needed by embedders.
1417
+ if options .use_clang :
1418
+ o ['variables' ]['clang' ] = 1
1419
+
1410
1420
cross_compiling = (options .cross_compiling
1411
1421
if options .cross_compiling is not None
1412
1422
else target_arch != host_arch )
You can’t perform that action at this time.
0 commit comments