Map GYP OS names to configure host OS.
(os_name)
| 7 | from pathlib import Path |
| 8 | |
| 9 | def get_host_os(os_name): |
| 10 | """Map GYP OS names to configure host OS.""" |
| 11 | mapping = { |
| 12 | 'linux': 'linux-gnu', |
| 13 | 'mac': 'darwin', |
| 14 | 'win': 'mingw', |
| 15 | 'freebsd': 'freebsd', |
| 16 | } |
| 17 | return mapping.get(os_name, os_name) |
| 18 | |
| 19 | def get_host_arch(os_name, arch): |
| 20 | """Map GYP architecture to configure host architecture.""" |