Files
cmake/Tests/RunCMake/Swift/TargetPDBFile-check.cmake
Saleem Abdulrasool 404f6bac3c Swift: support PDB emission with Swift
Swift supports CodeView/PDB for Windows (with active development ongoing
to make it the default). It is currently usable but does not have the
same fidelity as DWARF, but can be sufficient for many use cases. The
user is able to control this via flags. Wire up the necessary support to
allow `TARGET_PDB_FILE` to be used with Swift/Swift-only targets.
2026-05-16 09:05:46 -04:00

10 lines
403 B
CMake

file(READ "${RunCMake_TEST_BINARY_DIR}/cmake_install.cmake" install_script)
if(NOT install_script MATCHES "SwiftPDBCustom\\.pdb")
string(APPEND RunCMake_TEST_FAILED
"Generated install script does not reference SwiftPDBCustom.pdb\n")
endif()
if(NOT install_script MATCHES "OPTIONAL")
string(APPEND RunCMake_TEST_FAILED
"Generated install script does not preserve OPTIONAL install\n")
endif()