1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-24 00:56:14 +00:00

[meson] -fno-lto added to flags

clang-14 gives file not recognized: File format not recognized.
This commit is contained in:
Witold Filipczyk 2022-07-21 11:27:28 +02:00
parent 9cab4ceb94
commit 8764def801
2 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,7 @@ conf_data.set('HAVE_SYS_TIME_H', 1)
compiler = meson.get_compiler('c')
if conf_data.get('CONFIG_ECMASCRIPT')
extracflags = ['-xc++', '-fpermissive', '-Wno-sign-compare', '-std=gnu++17']
extracflags = ['-xc++', '-fpermissive', '-Wno-sign-compare', '-std=gnu++17', '-fno-lto']
else
extracflags = ['-Wc++-compat']
endif

View File

@ -54,5 +54,6 @@ elinks = executable(
include_directories: incs,
dependencies: deps,
c_args: extra_args,
cpp_args: extra_args,
install: true
)