Skip to content

Commit 5502474

Browse files
PackageToJS: Colorize diagnostics by default
1 parent d6eecb0 commit 5502474

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: Plugins/PackageToJS/Sources/PackageToJSPlugin.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -292,17 +292,18 @@ struct PackageToJSPlugin: CommandPlugin {
292292
logging: .concise
293293
)
294294
parameters.echoLogs = true
295+
parameters.otherSwiftcFlags = ["-color-diagnostics"]
295296
let buildingForEmbedded =
296297
ProcessInfo.processInfo.environment["JAVASCRIPTKIT_EXPERIMENTAL_EMBEDDED_WASM"].flatMap(
297298
Bool.init) ?? false
298299
if !buildingForEmbedded {
299300
// NOTE: We only support static linking for now, and the new SwiftDriver
300301
// does not infer `-static-stdlib` for WebAssembly targets intentionally
301302
// for future dynamic linking support.
302-
parameters.otherSwiftcFlags = [
303+
parameters.otherSwiftcFlags += [
303304
"-static-stdlib", "-Xclang-linker", "-mexec-model=reactor",
304305
]
305-
parameters.otherLinkerFlags = [
306+
parameters.otherLinkerFlags += [
306307
"--export-if-defined=__main_argc_argv"
307308
]
308309

0 commit comments

Comments
 (0)