diff options
author | Evan Wilde <etceterawilde@gmail.com> | 2022-09-02 22:41:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-16 14:41:39 (GMT) |
commit | a9509cec7ec5d672194f51071b9e9e54ebd9ccda (patch) | |
tree | 3231dcfe8a36c00da6b71bf1e744dc0c7b47f338 /Help/guide/tutorial/Step10/MathFunctions | |
parent | c3e68020d61ae306261b4f953947483a960edf32 (diff) | |
download | CMake-a9509cec7ec5d672194f51071b9e9e54ebd9ccda.zip CMake-a9509cec7ec5d672194f51071b9e9e54ebd9ccda.tar.gz CMake-a9509cec7ec5d672194f51071b9e9e54ebd9ccda.tar.bz2 |
Ninja: Fix mixed Swift/CXX library target generation
With how things were before, mixed Swift/C++ libraries would result in a
broken ninja file. `cpp.cpp.o` was emitted by the compiler, but was
also being included in the `linkBuild.Outputs` list, so it was being
emitted by multiple targets.
The fix checks that the source language is Swift before adding it to the
list of additional outputs. If it is Swift, this isn't a problem. If it
isn't Swift, we don't include it in the list of outputs.
On the other side, the C++ file was also being passed as a source file,
which the Swift compiler can't compile. So we add the C++ object file as
an explicit dependency and the object file is then added to the list of
Swift sources.
Diffstat (limited to 'Help/guide/tutorial/Step10/MathFunctions')
0 files changed, 0 insertions, 0 deletions