They (probably) crash due to high memory usage. The build argument -flto-partition=none is known to increase memory usage, so remove it. Related: RHEL-70420
29 lines
877 B
Diff
29 lines
877 B
Diff
diff --git a/meson.build b/meson.build
|
|
index 4f6d14da9a..335a7348ee 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -172,18 +172,10 @@ if enable_ld_gc
|
|
endif
|
|
|
|
enable_lto = get_option('b_lto')
|
|
-if enable_lto
|
|
- if cc.get_id() == 'clang'
|
|
- clang_version = cc.version()
|
|
- if clang_version <= '18.0.0'
|
|
- error('Clang version should be greater then 18.0.0 got : ' + clang_version)
|
|
- endif
|
|
- else
|
|
- # Meson already adds '-flto'
|
|
- lto_flag = '-flto-partition=none'
|
|
- assert(cc.has_argument(lto_flag), '-flto-partition=none not supported. Disable link-time optimization with -Db_lto=false.')
|
|
- common_flags += lto_flag
|
|
- common_ldflags += lto_flag
|
|
+if enable_lto and cc.get_id() == 'clang'
|
|
+ clang_version = cc.version()
|
|
+ if clang_version <= '18.0.0'
|
|
+ error('Clang version should be greater then 18.0.0 got : ' + clang_version)
|
|
endif
|
|
endif
|
|
|
|
|