diff --git a/src/PikaPlatform.c b/src/PikaPlatform.c index f64a980c0..b328d83d3 100644 --- a/src/PikaPlatform.c +++ b/src/PikaPlatform.c @@ -28,7 +28,7 @@ #include "PikaPlatform.h" #include #include -#ifdef WIN32 +#if defined(_WIN32) && !defined(CROSS_BUILD) #include #endif @@ -307,7 +307,7 @@ PIKA_WEAK void pika_platform_thread_delay(void) { PIKA_WEAK void pika_platform_sleep_ms(uint32_t ms) { #if defined(__linux) usleep(ms * 1000); -#elif defined(_WIN32) +#elif defined(_WIN32) && !defined(CROSS_BUILD) Sleep(ms); #else pika_platform_printf( diff --git a/tools/pikaByteCodeGen/CMakeLists.txt b/tools/pikaByteCodeGen/CMakeLists.txt index 23e680c10..0ac9c6d56 100644 --- a/tools/pikaByteCodeGen/CMakeLists.txt +++ b/tools/pikaByteCodeGen/CMakeLists.txt @@ -3,7 +3,10 @@ project(pikaByteCodeGen VERSION 0.1.0) include(CTest) enable_testing() -ADD_DEFINITIONS(-DPIKA_CONFIG_ENABLE) +ADD_DEFINITIONS( + -DPIKA_CONFIG_ENABLE + -DCROSS_BUILD +) aux_source_directory(pikascript/pikascript-core pikascript-core) aux_source_directory(pikascript/pikascript-lib/PikaStdLib PikaStdLib) aux_source_directory(pikascript/pikascript-api pikascript-api) diff --git a/tools/pikaCompiler/rust-msc-latest-win10.exe b/tools/pikaCompiler/rust-msc-latest-win10.exe index dcf80a4a0..36d036a42 100644 Binary files a/tools/pikaCompiler/rust-msc-latest-win10.exe and b/tools/pikaCompiler/rust-msc-latest-win10.exe differ