From d14d609986de3876517610d2f39207bb17bcaa75 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Thu, 4 Jul 2024 10:59:08 -0300 Subject: [PATCH] libcextract: ArgvParser: Change path to /usr/lib on x86 32bit Signed-off-by: Marcos Paulo de Souza --- libcextract/ArgvParser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcextract/ArgvParser.cpp b/libcextract/ArgvParser.cpp index 6cdff02..425629b 100644 --- a/libcextract/ArgvParser.cpp +++ b/libcextract/ArgvParser.cpp @@ -87,7 +87,11 @@ void ArgvParser::Insert_Required_Parameters(void) std::vector 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