Skip to content

Commit 4da84de

Browse files
committed
Enable thin lto
1 parent 92d4602 commit 4da84de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/build-naive/cmd_build.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func buildTarget(t Target) {
192192
"is_debug=false",
193193
"is_clang=true",
194194
"use_clang_modules=false",
195-
"use_thin_lto=false", // Disable ThinLTO so static lib can be linked with system clang
195+
// "use_thin_lto=false", // Disable ThinLTO so static lib can be linked with system clang
196196
"fatal_linker_warnings=false",
197197
"treat_warnings_as_errors=false",
198198
"is_cronet_build=true",
@@ -240,9 +240,9 @@ func buildTarget(t Target) {
240240
args = append(args,
241241
"use_sysroot=true",
242242
fmt.Sprintf("target_sysroot=\"//%s\"", sysrootDirectory),
243-
"build_static=true", // Static linking for musl
244-
"use_allocator_shim=false", // Disable allocator shim for musl compatibility
245-
"use_partition_alloc=false", // Disable PartitionAlloc to avoid GetStackTop() crash on musl
243+
"build_static=true", // Static linking for musl
244+
"use_allocator_shim=false", // Disable allocator shim for musl compatibility
245+
"use_partition_alloc=false", // Disable PartitionAlloc to avoid GetStackTop() crash on musl
246246
)
247247
if t.CPU == "x64" {
248248
args = append(args, "use_cfi_icall=false", "is_cfi=false")

0 commit comments

Comments
 (0)