53

I have a simple question - what is Shadow Building? I've seen it in Qt in Target Setup dialog, but don't know what it does or if I should use it.

It's also present in Projects tab, under General group.

Iuliu
  • 4,001
  • 19
  • 31
xx77aBs
  • 4,678
  • 9
  • 53
  • 77

2 Answers2

52

Shadow building is a technique used to build different Qt builds of the same version for different platforms/compilers/etc. Your compiled build is in a different directory, separate from the original Qt source directory.

I've created a shadow build for my MSVS2010 compiler. If I wanted to, I could create a new build for MinGW in a different build directory.

See the definition here, and more information about configuring your build here.

vsz
  • 4,811
  • 7
  • 41
  • 78
Mateen Ulhaq
  • 24,552
  • 19
  • 101
  • 135
1

Additional information for Mateen's answer.

By default, Qt Creator builds projects in a separate directory from the source directory, as shadow builds. This keeps the files generated for each build and run kit separate. If you only build and run with a single kit, you can deselect the Shadow build checkbox.

https://doc.qt.io/qtcreator/creator-build-settings.html#qmake-build-configuration

li ki
  • 342
  • 3
  • 11