Ryan Mansfield(deleted)
|
Re: Precompiled header support with qcc
|
Ryan Mansfield(deleted)
05/05/2010 11:59 AM
post53637
|
Re: Precompiled header support with qcc
On 10-05-05 11:26 AM, Christopher Pohl wrote:
> Dear all,
>
> I'm trying to get precompiled header support to work with QNX 6.5.0 M9 build on a ppcbespe cross build.
>
> I'm using the following command line to create a precompiled header in a build directory:
>
> # qcc -Vgcc_ntoppcbespe -x c++-header -O3 -Wc,-fno-strict-aliasing -Wc,-finline-functions -Wc,-Wno-inline -Wc,-Wall -
shared -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_LOG_NO_SETTINGS_PARSERS_SUPPORT -
DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_CHAR -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs\math\src\tr1" -c -
o "build.qnx650\boost\bin.v2\libs\math\build\qcc-ppcbespe\release\logapi-unix\target-os-qnx\threadapi-pthread\threading-
multi\..\src\tr1\pch.hpp.gch" "libs\math\build\..\src\tr1\pch.hpp"
>
> This command silently fails - no error output - no pch.gch.gcc created.
>
> The seemingly equivalent call:
>
> # ntoppc-gcc -me500v2 -x c++-header -O3 -fno-strict-aliasing -finline-functions -Wno-inline -Wall -shared -
DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_LOG_NO_SETTINGS_PARSERS_SUPPORT -DBOOST_LOG_NO_SHORTHAND_NAMES -
DBOOST_LOG_USE_CHAR -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs\math\src\tr1" -c -o "build.qnx650\boost\bin.v2\
libs\math\build\qcc-ppcbespe\release\logapi-unix\target-os-qnx\threadapi-pthread\threading-multi\..\src\tr1\pch.hpp.gch"
"libs\math\build\..\src\tr1\pch.hpp"
>
> works fine. The precompiled header is created.
>
> Any pointers on what I have to change with the qcc call to make it work ?
Looks like a bug in qcc not recognizing .hpp as an file extension for
pre-compiled headers. .h/.hh are recognized. I can provide you with
fixed qcc. Which host do you need it for?
> On a side note, I noticed the IDE Makefiles invoke the compiler for the ppcbespe target using "qcc -Vgcc_ntoppc -EB -
me500v2 ". Is there any reason why this is prefered over using the "qcc -Vgcc_ntoppcbespe" configuration directly ?
No advantage really, they should be have the same behavior.
Regards,
Ryan Mansfield
|
|
|