diff --git a/third_party/nxp/k32w0_sdk/k32w0_sdk.gni b/third_party/nxp/k32w0_sdk/k32w0_sdk.gni index 4206ceded05c79..2a2c122397c9a3 100644 --- a/third_party/nxp/k32w0_sdk/k32w0_sdk.gni +++ b/third_party/nxp/k32w0_sdk/k32w0_sdk.gni @@ -11,10 +11,14 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +import("//build_overrides/build.gni") import("//build_overrides/chip.gni") import("//build_overrides/k32w0_sdk.gni") import("//build_overrides/mbedtls.gni") import("//build_overrides/openthread.gni") + +import("${build_root}/config/compiler/compiler.gni") import("${chip_root}/src/crypto/crypto.gni") import("${chip_root}/src/platform/nxp/k32w/k32w0/args.gni") @@ -268,12 +272,20 @@ template("k32w0_sdk") { "-Wno-sign-compare", "-Wno-clobbered", "-Wno-implicit-fallthrough", - "-fno-optimize-strlen", "-mthumb", "-MMD", "-MP", ] + if (is_clang) { + cflags += [ + "-Wno-self-assign", + "-Wno-parentheses-equality", + ] + } else { + cflags += [ "-fno-optimize-strlen" ] + } + # Now add our "system-header" include dirs foreach(include_dir, _sdk_include_dirs) { cflags += [ "-isystem" + rebase_path(include_dir, root_build_dir) ]