From 1dfd802b117a096bea4b19b8120ab0283bd4b7ff Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Mon, 3 Jul 2023 17:23:01 +0200 Subject: [PATCH] disable codegen on windows --- crates/re_types/build.rs | 5 +++++ crates/re_types/source_hash.txt | 2 +- crates/re_types_builder/build.rs | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/re_types/build.rs b/crates/re_types/build.rs index cc08f5181a0d..3fc4e2e572bc 100644 --- a/crates/re_types/build.rs +++ b/crates/re_types/build.rs @@ -20,6 +20,11 @@ const RUST_OUTPUT_DIR_PATH: &str = "."; const PYTHON_OUTPUT_DIR_PATH: &str = "../../rerun_py/rerun_sdk/rerun/_rerun2"; fn main() { + if cfg!(target_os = "windows") { + // TODO(#2591): Codegen is temporarily disabled on Windows due to hashing issues. + return; + } + if !is_tracked_env_var_set("IS_IN_RERUN_WORKSPACE") { // Only run if we are in the rerun workspace, not on users machines. return; diff --git a/crates/re_types/source_hash.txt b/crates/re_types/source_hash.txt index 2edfdc1adebe..07a7ae9d92ab 100644 --- a/crates/re_types/source_hash.txt +++ b/crates/re_types/source_hash.txt @@ -1,4 +1,4 @@ # This is a sha256 hash for all direct and indirect dependencies of this crate's build script. # It can be safely removed at anytime to force the build script to run again. # Check out build.rs to see how it's computed. -2482cd3e136880416056a88c296bd419d5b01626d2db3914e5e375c614123bcc \ No newline at end of file +5cac23400a6084eaaa53fba54885d12daefa92fdbdb057c8221ec343dcdd9586 \ No newline at end of file diff --git a/crates/re_types_builder/build.rs b/crates/re_types_builder/build.rs index 8d9b613b98c7..df2d9b7d1bb3 100644 --- a/crates/re_types_builder/build.rs +++ b/crates/re_types_builder/build.rs @@ -14,6 +14,11 @@ const SOURCE_HASH_PATH: &str = "./source_hash.txt"; const FBS_REFLECTION_DEFINITION_PATH: &str = "./definitions/reflection.fbs"; fn main() { + if cfg!(target_os = "windows") { + // TODO(#2591): Codegen is temporarily disabled on Windows due to hashing issues. + return; + } + if !is_tracked_env_var_set("IS_IN_RERUN_WORKSPACE") { // Only run if we are in the rerun workspace, not on users machines. return;