chore: compiler's std include as a system include path

use -isystem cflags to use compiler's std include

Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: If1f8e5d3bb8090397885fa1f35ae893e5d212565
This commit is contained in:
Caoruihong 2021-07-28 17:22:50 +08:00
parent def22d3fd1
commit 66764e48fb
1 changed files with 5 additions and 1 deletions

View File

@ -142,7 +142,11 @@ config("as_objs_libc_flags") {
config("std_include") {
std_include = exec_script("//build/lite/run_shell_cmd.py", [ "$cc -print-file-name=include" ], "trim string")
include_dirs = [ std_include ]
cflags = [
"-isystem",
std_include,
]
asmflags = cflags
}
config("public") {