From 66764e48fb97c578b227e6524e6db8b905837c68 Mon Sep 17 00:00:00 2001 From: Caoruihong Date: Wed, 28 Jul 2021 17:22:50 +0800 Subject: [PATCH] chore: compiler's std include as a system include path use -isystem cflags to use compiler's std include Signed-off-by: Caoruihong Change-Id: If1f8e5d3bb8090397885fa1f35ae893e5d212565 --- BUILD.gn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index c067fb8f..4a038b26 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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") {