Files
swift-mirror/test/DebugInfo/embedded.swift
Daniel Rodríguez Troitiño aa61d953ba [embedded] Allow disabling embedded stdlib, but still test compiler (#73977)
While one can disable building the embedded stdlib, the tests for that
feature were unconditionally added. If one wants to just build the
compiler without any stdlib (except target), a bunch of embedded tests
would have failed.

Inject the value of `SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB` into the Lit
test system as a feature `embedded_stdlib` and add `REQUIRES:` to
a couple of tests outside the `embedded/` directory that seems to use
the experimental feature. Make the tests in `embedded/` unsupported in
the local Lit configuration file.
2024-05-29 15:45:05 -07:00

12 lines
414 B
Swift

// Check that the "-enable-embedded-swift" is stored as a flag in the
// Compile Unit.
// RUN: %target-swift-frontend -target %target-cpu-apple-macos14 -emit-ir -enable-experimental-feature Embedded -g %s -o - | %FileCheck %s
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: OS=macosx
// REQUIRES: embedded_stdlib
// CHECK: !DICompileUnit({{.*}}flags: "-enable-embedded-swift"