mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously, the driver would unconditionally create a CompileJobAction if it was in SingleCompile or Immediate mode. If there were no inputs, though, the driver would end up asserting later because it could not create a Command for a CompileJobAction with no inputs. To match the behavior of the StandardCompile mode, avoid creating a CompileJobAction if there are no inputs. (This change only affects -v, since it disables the 'no input files' error which otherwise prevents this condition from being hit.) Additionally, added a test to check swiftc's behavior when no inputs are provided. Swift SVN r20900
8 lines
311 B
Swift
8 lines
311 B
Swift
// RUN: %swiftc_driver_plain -v 2>&1 | FileCheck %s
|
|
// RUN: %swiftc_driver_plain -v -force-single-frontend-invocation 2>&1 | FileCheck %s
|
|
// RUN: not %swiftc_driver_plain -emit-executable 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
|
|
|
|
// CHECK-NOT: error: no input files
|
|
|
|
// CHECK-ERROR: error: no input files
|