diff options
Diffstat (limited to 'sources/shiboken2/ApiExtractor/header_paths.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/header_paths.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sources/shiboken2/ApiExtractor/header_paths.h b/sources/shiboken2/ApiExtractor/header_paths.h index 3bc26efe0..f70709b7c 100644 --- a/sources/shiboken2/ApiExtractor/header_paths.h +++ b/sources/shiboken2/ApiExtractor/header_paths.h @@ -46,12 +46,16 @@ public: { QByteArray option; - if (p.m_isFramework) - option = QByteArrayLiteral("-F"); - else if (systemInclude) + if (p.m_isFramework) { + if (systemInclude) + option = QByteArrayLiteral("-iframework"); + else + option = QByteArrayLiteral("-F"); + } else if (systemInclude) { option = QByteArrayLiteral("-isystem"); - else + } else { option = QByteArrayLiteral("-I"); + } return option + p.path; } |