Skip to content

Commit ebd5992

Browse files
committed
Use Swift-style args for Driver
1 parent 35735e7 commit ebd5992

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/Option/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,10 @@ def lto : Joined<["-"], "lto=">,
550550
Flags<[FrontendOption, NoInteractiveOption]>,
551551
HelpText<"Specify the LTO type to either 'llvm-thin' or 'llvm-full'">;
552552

553-
def lto_library : Separate<["-"], "lto_library">,
553+
def lto_library : Separate<["-"], "lto-library">,
554554
Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption,
555555
SwiftAPIDigesterOption]>,
556-
HelpText<"Perform LTO with <lto_library>">, MetaVarName<"<lto_library>">;
556+
HelpText<"Perform LTO with <lto-library>">, MetaVarName<"<lto-library>">;
557557

558558
def access_notes_path : Separate<["-"], "access-notes-path">,
559559
Flags<[FrontendOption, ArgumentIsPath]>,

test/Driver/link-time-opt-darwin-ld-lib.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828

2929
// Check that driver does not see libLTO.dylib as an input
3030

31-
// RUN: %swiftc_driver -driver-print-jobs %S/../Inputs/empty.swift -lto=llvm-full -lto_library /foo/libLTO.dylib -target x86_64-apple-macosx10.9 | %FileCheck %s --check-prefix=CHECK-SIMPLE-LTO-LIB --check-prefix=CHECK-SIMPLE-LTO-LIB-macosx
31+
// RUN: %swiftc_driver -driver-print-jobs %S/../Inputs/empty.swift -lto=llvm-full -lto-library /foo/libLTO.dylib -target x86_64-apple-macosx10.9 | %FileCheck %s --check-prefix=CHECK-SIMPLE-LTO-LIB --check-prefix=CHECK-SIMPLE-LTO-LIB-macosx
3232

3333
// CHECK-SIMPLE-LTO-LIB: swift
3434
// CHECK-SIMPLE-LTO-LIB-DAG: -emit-bc
3535
// CHECK-SIMPLE-LTO-LIB-DAG: -lto=llvm-full
36-
// CHECK-SIMPLE-LTO-LIB-NOT: -lto_library /foo/libLTO.dylib
36+
// CHECK-SIMPLE-LTO-LIB-NOT: -lto-library /foo/libLTO.dylib
3737
// CHECK-SIMPLE-LTO-LIB-DAG: -o [[OBJECTFILE:.*\.bc]]
3838

3939
// CHECK-SIMPLE-LTO-LIB-macosx: ld

0 commit comments

Comments
 (0)