| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent be62037 commit 0bb77f2
1 file 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', | |
@@ -725,7 +736,9 @@ def configure_node(o): | |||
| 725 | 736 | o['variables']['target_arch'] = target_arch | |
| 726 | 737 | o['variables']['node_byteorder'] = sys.byteorder | |
| 727 | 738 | ||
| 728 | - cross_compiling = target_arch != host_arch | ||
| 739 | + cross_compiling = (options.cross_compiling | ||
| 740 | + if options.cross_compiling is not None | ||
| 741 | + else target_arch != host_arch) | ||
| 729 | 742 | want_snapshots = not options.without_snapshot | |
| 730 | 743 | o['variables']['want_separate_host_toolset'] = int( | |
| 731 | 744 | cross_compiling and want_snapshots) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments