diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2019-05-11 13:19:19 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2019-05-14 13:58:29 +0000 |
commit | f0092aeea998ab96f6db9b5c0761ad452a0d493a (patch) | |
tree | 405e1f889a181f6779d6dcb0b2610f963202280e /share/qbs/imports/qbs/Probes | |
parent | fc4d6354ad99aa402b6ca2e6cb1baebd566cee32 (diff) |
bare-metal: Implement cpp.compilerIncludePaths for SDCC toolchain
Change-Id: If9143a5af10c842bbb2b6dd08d201f8d9963012f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/imports/qbs/Probes')
-rw-r--r-- | share/qbs/imports/qbs/Probes/SdccProbe.qbs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/qbs/imports/qbs/Probes/SdccProbe.qbs b/share/qbs/imports/qbs/Probes/SdccProbe.qbs index 10f6461cb..864dc45bc 100644 --- a/share/qbs/imports/qbs/Probes/SdccProbe.qbs +++ b/share/qbs/imports/qbs/Probes/SdccProbe.qbs @@ -42,6 +42,7 @@ PathProbe { property int versionMajor; property int versionMinor; property int versionPatch; + property stringList includePaths; configure: { if (!File.exists(compilerFilePath)) { @@ -54,6 +55,9 @@ PathProbe { architecture = SDCC.guessArchitecture(macros); endianness = SDCC.guessEndianness(macros); + var defaultPaths = SDCC.dumpDefaultPaths(compilerFilePath, architecture); + includePaths = defaultPaths.includePaths; + versionMajor = parseInt(macros["__SDCC_VERSION_MAJOR"], 10); versionMinor = parseInt(macros["__SDCC_VERSION_MINOR"], 10); versionPatch = parseInt(macros["__SDCC_VERSION_PATCH"], 10); |