diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-28 15:32:56 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-28 15:56:34 +0200 |
commit | a9350ebcb713d89bde8a9221d15aa1ead8976221 (patch) | |
tree | 99231b997548890d33f055446ea9a29775ce4ca4 /share/qbs/modules/cpp | |
parent | 6a9f052d3df8d8a73a936f0b6dde540eee4f1955 (diff) |
GCC module: Only use -fvisibility-inlines-hidden for C++ code.
It's not supported for other languages.
Change-Id: I69ed8acfd4c693036d341bbdf0cce1e3190467ea
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'share/qbs/modules/cpp')
-rw-r--r-- | share/qbs/modules/cpp/gcc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/gcc.js b/share/qbs/modules/cpp/gcc.js index 3d415c0e6..3554eb443 100644 --- a/share/qbs/modules/cpp/gcc.js +++ b/share/qbs/modules/cpp/gcc.js @@ -283,7 +283,7 @@ function prepareCompiler(project, product, inputs, outputs, input, output) { && !product.moduleProperty("qbs", "toolchain").contains("mingw")) { if (visibility === 'hidden' || visibility === 'minimal') args.push('-fvisibility=hidden'); - if (visibility === 'hiddenInlines' || visibility === 'minimal') + if ((visibility === 'hiddenInlines' || visibility === 'minimal') && tag === 'cpp') args.push('-fvisibility-inlines-hidden'); if (visibility === 'default') args.push('-fvisibility=default') |