mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[driver] Add the -emit-library option.
This emits a dynamic library as the final build product (rather than an executable), as well as implicitly passing -parse-as-library to the frontend. Swift SVN r12930
This commit is contained in:
@@ -70,8 +70,12 @@ public:
|
||||
/// The output type which should be used for compile actions.
|
||||
types::ID CompilerOutputType = types::ID::TY_INVALID;
|
||||
|
||||
/// Whether or not the output of compile actions should be linked together.
|
||||
bool ShouldLink = false;
|
||||
/// Describes if and how the output of compile actions should be
|
||||
/// linked together.
|
||||
LinkKind LinkAction = LinkKind::None;
|
||||
|
||||
/// Returns true if the linker will be invoked at all.
|
||||
bool shouldLink() const { return LinkAction != LinkKind::None; }
|
||||
|
||||
/// Whether or not the driver should generate a module.
|
||||
bool ShouldGenerateModule = false;
|
||||
|
||||
Reference in New Issue
Block a user