aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-07-09 23:53:18 +0100
committergingerBill <bill@gingerbill.org>2022-07-09 23:53:18 +0100
commitbabbc304b8985bf86c94ea635eb273e8526764ad (patch)
treeca9a9f527c46715d3f7daf75f60fe5094a0d7294
parent1676c643dfd9ef45f2aaa4dfddb69cea4bcf80fc (diff)
Fix wasm compilation in windows
-rw-r--r--src/build_settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp
index a82cc80c9..53f28b01a 100644
--- a/src/build_settings.cpp
+++ b/src/build_settings.cpp
@@ -1321,7 +1321,7 @@ bool init_build_paths(String init_filename) {
return true;
}
- #if defined(GB_SYSTEM_WINDOWS)
+ if (bc->metrics.os == TargetOs_windows) {
if (bc->resource_filepath.len > 0) {
bc->build_paths[BuildPath_RC] = path_from_string(ha, bc->resource_filepath);
bc->build_paths[BuildPath_RES] = path_from_string(ha, bc->resource_filepath);
@@ -1377,7 +1377,7 @@ bool init_build_paths(String init_filename) {
}
}
}
- #endif
+ }
// All the build targets and OSes.
String output_extension;