From 364a4395de9ecac810bfa636641e8adb43a52a42 Mon Sep 17 00:00:00 2001 From: Bendik Samseth Date: Mon, 16 Sep 2024 09:35:54 +0200 Subject: [PATCH] Fix fathom build on Windows Apparently MSVC needs to be told to use C++ mode for the C files, as they are somehow more modern than what MSCV can handle. --- fathom/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/fathom/build.rs b/fathom/build.rs index 3f4954e..4a6b848 100644 --- a/fathom/build.rs +++ b/fathom/build.rs @@ -3,6 +3,7 @@ fn main() { .include("external/fathom/src") .file("external/fathom/src/tbprobe.c") .flag("-DTB_NO_HELPER_API") + .flag_if_supported("-TP") .compile("fathom"); println!("cargo:rerun-if-changed=external/fathom"); }