From 1da8d5f1cfd0589eebb7b80defd26e3cbde9ae4b Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 17 Jul 2024 02:00:19 -0700 Subject: [PATCH] fix static windows and linux aarch64 builds (#2) * Fix linux aarch 64 build * Static windows build --- .cargo/config.toml | 2 ++ vendor/lief/cmake/LIEFCompilerFlags.cmake | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..ac2b23f --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] diff --git a/vendor/lief/cmake/LIEFCompilerFlags.cmake b/vendor/lief/cmake/LIEFCompilerFlags.cmake index 2812849..b2ab8b2 100644 --- a/vendor/lief/cmake/LIEFCompilerFlags.cmake +++ b/vendor/lief/cmake/LIEFCompilerFlags.cmake @@ -65,7 +65,7 @@ if (NOT MSVC) ADD_FLAG_IF_SUPPORTED("-fdiagnostics-color=always" DIAGNOSTICS_COLOR) - ADD_FLAG_IF_SUPPORTED("-fcolor-diagnostics" COLOR_DIAGNOSTICS) + # ADD_FLAG_IF_SUPPORTED("-fcolor-diagnostics" COLOR_DIAGNOSTICS) endif() #ADD_FLAG_IF_SUPPORTED("-Wduplicated-cond" HAS_DUPLICATED_COND)