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 128128 default = None ,
129129 help = 'use the prefix to look for pre-installed headers' )
130130
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+
131137parser .add_argument ('--dest-os' ,
132138 action = 'store' ,
133139 dest = 'dest_os' ,
@@ -1358,6 +1364,10 @@ def configure_node(o):
13581364 o ['variables' ]['target_arch' ] = target_arch
13591365 o ['variables' ]['node_byteorder' ] = sys .byteorder
13601366
1367+ # Allow overriding the compiler - needed by embedders.
1368+ if options .use_clang :
1369+ o ['variables' ]['clang' ] = 1
1370+
13611371 cross_compiling = (options .cross_compiling
13621372 if options .cross_compiling is not None
13631373 else target_arch != host_arch )
You can’t perform that action at this time.
0 commit comments