简体   繁体   中英

Clang search path file

How to add a path compiler search path? I do not mean-I options. I want to add path permanently to compiler search paths. Is there a file where compiler has saved search paths? I would like to add the path to the header so that the compiler always searching this folder every time I run the build. I am using Fedora 20.

According to the detected/specified triple and language, clang searches for built-in additional default include paths in the following routine

void InitHeaderSearch::AddDefaultIncludePaths(const LangOptions &Lang,
                                          const llvm::Triple &triple,
                                        const HeaderSearchOptions &HSOpts)

Take a look at the source code here . That's your spot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM