What does “Tool chain” option in Helpers setting in Mac Qt Creator do?
I never really understand what the “Tool chain” found in Mac version of Creator’s Debugger Helper is for:
For example, the Qt 5 install was built with build-in clang tool chain. Whatever tool chain I choose in this place, the helper is always built with clang (I assume the build-in one). What exactly is this option for?
Sorry, I am not a mac user…
Lucky you. I wish I wasn’t. :)
How can I tell whether a compiler is part of Xcode 4.2 or earlier? Version numbers?
One can certainly come up with a list of matching compiler and Xcode versions. There might be one somewhere already. But if the goal is to figure out if PPC is supported, some shell script/command-line kungfu is probably better way to go. I’ll see what I can find.
Apple GCC lies about -dumpmachine :)
Here’s what I come up with on versions:
None of LLVM-backed compilers on Mac supports PPC. That includes all versions of clang and Apple’s LLVM-GCC 4.2.
Apple GCC 4.0 is the only compiler that for sure supports PPC.
Apple GCC 4.2 (non-LLVM one) is nasty. It originally supports PPC but Apple stripped it midway when they introduced Xcode 4.
So Creator should only enable PPC tool chain if it’s GCC 4.0 or 4.2. Disable it for everything else.
It’s not completely correct (4.2 can be both) but it will be way better than what it does now.
Now back to the OP. What exactly does tool chain do in generating dumper? :)
Thanks for the information. I’ll update creator with this in mind:-)
The tool chain is passed to DebuggingHelperBuildTask and does the following there:
- Sets the path and other environment variables
- Sets some parameters passed to qmake (on mac only AFAICT)
- Sets the make command to use
- Sets some parameters passed to the make command (for Symbian or Unix-on-Windows)
That’s it. It probably should also set the mkspec.
Does this information help?
Well. If it still uses clang to build the helper when I choose GCC tool chain, then it doesn’t really do what I think it should then. :)
All these confusion will go away after Mac finally gets some python enabled gdb love. Can’t happen fast enough. Until then, I will just stick with one tool chain through out. Thanks.