mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add an alias for -import-objc-header flag: -import-bridging-header
This commit is contained in:
@@ -320,6 +320,9 @@ def import_underlying_module : Flag<["-"], "import-underlying-module">,
|
||||
def import_objc_header : Separate<["-"], "import-objc-header">,
|
||||
Flags<[FrontendOption, HelpHidden, ArgumentIsPath]>,
|
||||
HelpText<"Implicitly imports an Objective-C header file">;
|
||||
def import_bridging_header : Separate<["-"], "import-bridging-header">,
|
||||
Flags<[FrontendOption, HelpHidden, ArgumentIsPath]>,
|
||||
Alias<import_objc_header>;
|
||||
|
||||
def pch_output_dir: Separate<["-"], "pch-output-dir">,
|
||||
Flags<[FrontendOption, HelpHidden, ArgumentIsPath]>,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-swift-emit-ir -import-objc-header %S/../Inputs/objc_direct.h -o - %s | %FileCheck %s
|
||||
// RUN: %target-swift-emit-ir -import-bridging-header %S/../Inputs/objc_direct.h -o - %s | %FileCheck %s
|
||||
|
||||
// REQUIRES: objc_interop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user