Skip to content

Commit 49ee07e

Browse files
authored
Always add isFramework to explicit module map (#989)
Without this value you get UB swiftlang/swift#63119 This hit us where it defaults to true with Swift 5.7.2 on Ubuntu 22.04, but not on Ubuntu 20.04. I don't think this ever needs to be true for bazel
1 parent da30f00 commit 49ee07e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

swift/internal/explicit_module_map_file.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def write_explicit_swift_module_map_file(
3939
continue
4040

4141
swift_context = module_context.swift
42-
module_description = {"moduleName": module_context.name}
42+
module_description = {
43+
"moduleName": module_context.name,
44+
"isFramework": False,
45+
}
4346
if swift_context.swiftmodule:
4447
module_description["modulePath"] = swift_context.swiftmodule.path
4548
module_descriptions.append(module_description)

0 commit comments

Comments
 (0)