Skip to content

Commit

Permalink
Support external c/cc flags (as-is from rafal's PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
kedars committed Aug 25, 2020
1 parent 1fcb6dd commit a43a0a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/core/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ import("${chip_root}/gn/chip/tests.gni")
import("${chip_root}/src/inet/inet.gni")
import("core.gni")

declare_args() {
cflags_c_ext = []
cflags_cc_ext = []
}

buildconfig_header("chip_buildconfig") {
header = "CHIPBuildConfig.h"
header_dir = "core"
Expand Down Expand Up @@ -110,6 +115,9 @@ static_library("core") {
"CHIPTLVWriter.cpp",
]

cflags_c = cflags_c_ext
cflags_cc = cflags_cc_ext

public_deps = [
":chip_config_header",
"${chip_root}/src/ble",
Expand Down

0 comments on commit a43a0a8

Please sign in to comment.