Skip to content

Commit

Permalink
Pixel 2: build.config: use clang on debug builds
Browse files Browse the repository at this point in the history
Change-Id: I86b7c7e744d3b8d15aca38429f3c54a9df10b07f
Signed-off-by: Petri Gynther <[email protected]>
(cherry picked from commit ca4e599f785bc3b22a43fe5c2e0535457a71fef7)
  • Loading branch information
Petri Gynther committed Sep 24, 2019
1 parent 075f35e commit 10fa92b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.config.debug_api
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config"

function update_debug_config() {
Expand Down
2 changes: 1 addition & 1 deletion build.config.debug_hang
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config"

function update_debug_config() {
Expand Down
2 changes: 1 addition & 1 deletion build.config.debug_locking
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config"

function update_debug_config() {
Expand Down
2 changes: 1 addition & 1 deletion build.config.debug_memory
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config"

function update_debug_config() {
Expand Down
6 changes: 4 additions & 2 deletions build.config.kasan
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_kasan_config"

function update_kasan_config() {
Expand All @@ -14,7 +14,9 @@ function update_kasan_config() {
-d CONFIG_SLUB_DEBUG_PANIC_ON \
-d CONFIG_KASAN_OUTLINE \
-d CONFIG_KERNEL_LZ4 \
-d CONFIG_RANDOMIZE_BASE
-d CONFIG_RANDOMIZE_BASE \
-d CONFIG_CC_WERROR \
--set-val CONFIG_FRAME_WARN 0
(cd ${OUT_DIR} && \
make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
}

0 comments on commit 10fa92b

Please sign in to comment.