Skip to content
  • Evan Wilde's avatar
    Swift: Support static-library try-compile type · c6e52ef7
    Evan Wilde authored
    Top-level code only works as part of executables, which breaks when
    `CMAKE_TRY_COMPILE_TARGET_TYPE` is set to `STATIC_LIBRARY`. This patch
    fixes the test to something agnostic between executables and libraries
    while still verifying that we can import types from the standard
    library.
    
    Fixes: #25984
    c6e52ef7