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 and pull[bot] committed Jul 17, 2023
1 parent 01a58a1 commit 1060796
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 1060796

Please sign in to comment.