diff options
| author | gingerBill <bill@gingerbill.org> | 2020-06-29 17:35:33 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-06-29 17:35:33 +0100 |
| commit | 0ea64182f1a05803a64f5495a9edb740c6d2488e (patch) | |
| tree | 92ae802dc87693d602090ca7b0482de7eb67b3cd /src/build_settings.cpp | |
| parent | 8478b887a594ebbad9789888db006eb149d3b0c3 (diff) | |
Begin work on windows 386
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 1e9d82b0a..171fca756 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -138,6 +138,7 @@ struct BuildContext { bool use_lld; bool vet; bool cross_compiling; + bool different_os; bool keep_object_files; bool use_llvm_api; @@ -624,8 +625,9 @@ void init_build_context(TargetMetrics *cross_target) { #endif if (cross_target != nullptr && metrics != cross_target) { - metrics = cross_target; + bc->different_os = cross_target->os != metrics->os; bc->cross_compiling = true; + metrics = cross_target; } GB_ASSERT(metrics->os != TargetOs_Invalid); |