Skip to content

Commit

Permalink
Use build flag instead of checking env variable directly (#23674)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored Nov 18, 2022
1 parent cf4f2b8 commit aee3b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import("//build_overrides/build.gni")
import("//build_overrides/pigweed.gni")

import("${build_root}/chip/java/config.gni")
import("${build_root}/config/compiler/compiler.gni")
import("${build_root}/config/sysroot.gni")
import("${build_root}/config/target.gni")
Expand Down Expand Up @@ -248,7 +248,7 @@ config("strict_warnings") {
]
}

if (getenv("JAVA_PATH") != "") {
if (build_java_matter_controller) {
cflags -= [ "-Wshadow" ]
}

Expand Down

0 comments on commit aee3b95

Please sign in to comment.