Files
swift-mirror/test/Driver/modulewrap.swift
Adrian Prantl 0ec2762f96 [driver] Implement -debug-module-path in the legacy driver
Not having suport for this option causes confusing and non-obvious failures in
the LLDB testsuite, and some people build LLDB without also compiling the driver.

rdar://168107340
2026-01-22 17:03:32 -08:00

8 lines
624 B
Swift

// RUN: %swiftc_driver -driver-print-jobs -target x86_64-unknown-linux-gnu -g %s | %FileCheck %s
// CHECK: bin{{/|\\\\}}swift{{(c|c-legacy-driver|-frontend)?(\.exe)?"?}} -frontend{{.*}}-emit-module-path [[MOD:.*\.swiftmodule"?]] -emit-module-doc-path
// CHECK: bin{{/|\\\\}}swift{{(c|c-legacy-driver|-frontend)?(\.exe)?"?}} {{.*}}-emit-module [[MOD]]
// CHECK-SAME: -o [[MERGED:.*\.swiftmodule]]
// CHECK: bin{{/|\\\\}}swift{{(c|c-legacy-driver|-frontend)?(\.exe)?"?}} -modulewrap [[MERGED]]{{"?}} -target x86_64-unknown-linux-gnu -o [[OBJ:.*\.o]]
// CHECK: bin{{/|\\\\}}clang{{.*}} [[OBJ]]