blob: f7eeffba787648e066acd74d40dbd9f38caa7cad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- build/config/sanitizers/sanitizers.gni.orig 2017-04-19 19:06:28 UTC
+++ build/config/sanitizers/sanitizers.gni
@@ -54,8 +54,8 @@ declare_args() {
# See http://clang.llvm.org/docs/ControlFlowIntegrity.html
#
# TODO(pcc): Remove this flag if/when CFI is enabled in all official builds.
- is_cfi = target_os == "linux" && !is_chromeos && target_cpu == "x64" &&
- is_official_build && allow_posix_link_time_opt
+ is_cfi = (target_os == "linux" || target_os == "bsd") && !is_chromeos &&
+ target_cpu == "x64" && is_official_build && allow_posix_link_time_opt
# Enable checks for bad casts: derived cast and unrelated cast.
# TODO(krasin): remove this, when we're ready to add these checks by default.
|