-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable ASAN for release builds as per request in issue #402
- Loading branch information
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
!.gitignore | ||
!PKGBUILD | ||
!.SRCINFO | ||
!disable-ASAN-by-default-for-release-builds.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 3031a5607a1659cd38e876004007e1a56ace50f8 Mon Sep 17 00:00:00 2001 | ||
From: Jacob Appelbaum <[email protected]> | ||
Date: Mon, 21 Mar 2016 13:33:07 +0000 | ||
Subject: [PATCH] disable ASAN by default for release builds | ||
|
||
--- | ||
hardened.pri | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/hardened.pri b/hardened.pri | ||
index 1b6c3b0..1bd3aaf 100644 | ||
--- a/hardened.pri | ||
+++ b/hardened.pri | ||
@@ -15,12 +15,13 @@ HARDENED_STACK_PROTECTOR_FLAGS = -fstack-protector --param=ssp-buffer-size=4 | ||
|
||
HARDENED_MINGW_64ASLR_FLAGS = -Wl,--dynamicbase -Wl,--high-entropy-va | ||
|
||
+ | ||
# Run tests and apply options where possible | ||
CONFIG(hardened) { | ||
# mingw is always PIC, and complains about the flag | ||
!mingw:HARDEN_FLAGS = -fPIC | ||
|
||
- qtCompileTest(sanitize):HARDEN_FLAGS += $$HARDENED_SANITIZE_FLAGS | ||
+ CONFIG(debug,debug|release): qtCompileTest(sanitize):HARDEN_FLAGS += $$HARDENED_SANITIZE_FLAGS | ||
qtCompileTest(sanitize-ubsan):HARDEN_FLAGS += $$HARDENED_SANITIZE_UBSAN_FLAGS | ||
qtCompileTest(sanitize-ubsan-more):HARDEN_FLAGS += $$HARDENED_SANITIZE_UBSAN_MORE_FLAGS | ||
qtCompileTest(vtable-verify):HARDEN_FLAGS += $$HARDENED_VTABLE_VERIFY_FLAGS | ||
-- | ||
2.8.0 | ||
|