File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,17 @@ parser.add_option('--dest-cpu',
79
79
choices = valid_arch ,
80
80
help = 'CPU architecture to build for ({0})' .format (', ' .join (valid_arch )))
81
81
82
+ parser .add_option ('--cross-compiling' ,
83
+ action = 'store_true' ,
84
+ dest = 'cross_compiling' ,
85
+ default = None ,
86
+ help = 'force build to be considered as cross compiled' )
87
+ parser .add_option ('--no-cross-compiling' ,
88
+ action = 'store_false' ,
89
+ dest = 'cross_compiling' ,
90
+ default = None ,
91
+ help = 'force build to be considered as NOT cross compiled' )
92
+
82
93
parser .add_option ('--dest-os' ,
83
94
action = 'store' ,
84
95
dest = 'dest_os' ,
@@ -765,7 +776,9 @@ def configure_node(o):
765
776
o ['variables' ]['target_arch' ] = target_arch
766
777
o ['variables' ]['node_byteorder' ] = sys .byteorder
767
778
768
- cross_compiling = target_arch != host_arch
779
+ cross_compiling = (options .cross_compiling
780
+ if options .cross_compiling is not None
781
+ else target_arch != host_arch )
769
782
want_snapshots = not options .without_snapshot
770
783
o ['variables' ]['want_separate_host_toolset' ] = int (
771
784
cross_compiling and want_snapshots )
You can’t perform that action at this time.
0 commit comments