mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Add mbig-obj flag to allow cross-compiling libexpr to mingw32
This commit is contained in:
parent
177a067d66
commit
26539a087f
2 changed files with 5 additions and 0 deletions
4
nix-meson-build-support/big-objs/meson.build
Normal file
4
nix-meson-build-support/big-objs/meson.build
Normal file
|
@ -0,0 +1,4 @@
|
|||
# libexpr's primops creates a large object
|
||||
# Without the following flag, we'll get errors when cross-compiling to mingw32:
|
||||
# Fatal error: can't write 66 bytes to section .text of src/libexpr/libnixexpr.dll.p/primops.cc.obj: 'file too big'
|
||||
add_project_arguments([ '-Wa,-mbig-obj' ], language: 'cpp')
|
|
@ -24,6 +24,7 @@ deps_public_maybe_subproject = [
|
|||
dependency('nix-fetchers'),
|
||||
]
|
||||
subdir('nix-meson-build-support/subprojects')
|
||||
subdir('nix-meson-build-support/big-objs')
|
||||
|
||||
boost = dependency(
|
||||
'boost',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue