!470 编译器标准头文件路径标识为系统路径(-isystem)
Merge pull request !470 from Caoruihong/isystem_std_inc
This commit is contained in:
commit
2d8e59ccf3
6
BUILD.gn
6
BUILD.gn
|
@ -142,7 +142,11 @@ config("as_objs_libc_flags") {
|
||||||
|
|
||||||
config("std_include") {
|
config("std_include") {
|
||||||
std_include = exec_script("//build/lite/run_shell_cmd.py", [ "$cc -print-file-name=include" ], "trim string")
|
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") {
|
config("public") {
|
||||||
|
|
Loading…
Reference in New Issue