Skip to content

Commit 3539fac

Browse files
authored
Merge pull request #978 from swiftwasm/swiftwasm-release/revert-static-library
Revert static library flag change in the 5.3 branch
2 parents 0eb5e44 + 916acee commit 3539fac

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

lib/Driver/Driver.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,18 +1459,12 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
14591459
OI.CompilerOutputType = file_types::TY_Object;
14601460
break;
14611461

1462-
case options::OPT_emit_library: {
1463-
// WebAssembly only support static library
1464-
if (TC.getTriple().isOSBinFormatWasm()) {
1465-
OI.LinkAction = LinkKind::StaticLibrary;
1466-
} else {
1467-
OI.LinkAction = Args.hasArg(options::OPT_static) ?
1468-
LinkKind::StaticLibrary :
1469-
LinkKind::DynamicLibrary;
1470-
}
1462+
case options::OPT_emit_library:
1463+
OI.LinkAction = Args.hasArg(options::OPT_static) ?
1464+
LinkKind::StaticLibrary :
1465+
LinkKind::DynamicLibrary;
14711466
OI.CompilerOutputType = file_types::TY_Object;
14721467
break;
1473-
}
14741468
case options::OPT_static:
14751469
break;
14761470

0 commit comments

Comments
 (0)