From 3d15272dc2534d8188764d0084e83c9f3c735af7 Mon Sep 17 00:00:00 2001 From: Hugues Morisset Date: Thu, 26 Oct 2023 16:26:10 +0200 Subject: [PATCH] Remove -Wno-error, include PKG_DIR --- build_defs/cgo.build_defs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_defs/cgo.build_defs b/build_defs/cgo.build_defs index 6edc7194..83a40520 100644 --- a/build_defs/cgo.build_defs +++ b/build_defs/cgo.build_defs @@ -97,7 +97,7 @@ def cgo_library(name:str, srcs:list=[], resources:list=None, go_srcs:list=[], c_ srcs = [cgo_rule + '|c'] + c_srcs, hdrs = [cgo_rule + '|h'] + hdrs, compiler_flags = compiler_flags + [ - '-Wno-error', + '-I', '"$PKG_DIR"', '-Wno-unused-parameter', # Generated code doesn't compile clean ], pkg_config_libs = pkg_config,