mirror of
https://github.com/Z3Prover/z3
synced 2025-10-25 00:44:36 +00:00
Enabling Control Flow Guard (CFG) by default for MSVC on Windows, with options to disable CFG. (#7988)
* Enabling Control Flow Guard by default for MSVC on Windows, with options to disable it. * Fix configuration error for non-MSVC compilers. * Reviewed and updated configuration for Python build and added comment for CFG.
This commit is contained in:
parent
68a7d1e1b1
commit
2bf1cc7d61
5 changed files with 155 additions and 27 deletions
|
|
@ -27,7 +27,7 @@ cmake(
|
|||
out_shared_libs = select({
|
||||
"@platforms//os:linux": ["libz3.so"],
|
||||
# "@platforms//os:osx": ["libz3.dylib"], # FIXME: this is not working, libz3<version>.dylib is not copied
|
||||
# "@platforms//os:windows": ["z3.dll"], # TODO: test this
|
||||
"@platforms//os:windows": ["libz3.dll"],
|
||||
"//conditions:default": ["@platforms//:incompatible"],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
|
|
@ -45,7 +45,7 @@ cmake(
|
|||
out_static_libs = select({
|
||||
"@platforms//os:linux": ["libz3.a"],
|
||||
"@platforms//os:osx": ["libz3.a"],
|
||||
# "@platforms//os:windows": ["z3.lib"], # TODO: test this
|
||||
"@platforms//os:windows": ["libz3.lib"], # MSVC with Control Flow Guard enabled by default
|
||||
"//conditions:default": ["@platforms//:incompatible"],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue