Skip to content

Commit

Permalink
fix static windows and linux aarch64 builds (#2)
Browse files Browse the repository at this point in the history
* Fix linux aarch 64 build

* Static windows build
  • Loading branch information
littledivy authored Jul 17, 2024
1 parent 2a077d1 commit 1da8d5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
2 changes: 1 addition & 1 deletion vendor/lief/cmake/LIEFCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1da8d5f

Please sign in to comment.