Skip to content

Commit

Permalink
libcextract: ArgvParser: Change path to /usr/lib on x86 32bit
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Paulo de Souza <[email protected]>
  • Loading branch information
marcosps authored and giulianobelinassi committed Jul 4, 2024
1 parent 2144358 commit d14d609
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libcextract/ArgvParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ void ArgvParser::Insert_Required_Parameters(void)
std::vector<const char *> priv_args = {
"-Xclang", "-detailed-preprocessing-record",
// For some reason libtooling do not pass the clang include folder. Pass this then.
#ifdef __i386__
"-I/usr/lib/clang/" STRINGFY_VALUE(CLANG_VERSION_MAJOR) "/include",
#else
"-I/usr/lib64/clang/" STRINGFY_VALUE(CLANG_VERSION_MAJOR) "/include",
#endif
"-Wno-gnu-variable-sized-type-not-at-end",
"-Wno-incompatible-pointer-types-discards-qualifiers", // this can be triggered for older codestreams
"-Wno-missing-prototypes", // We remove the static keyword from the
Expand Down

0 comments on commit d14d609

Please sign in to comment.