mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Merge pull request #12387 from nix-windows/big-objs
Add mbig-obj flag to allow cross-compiling libexpr to mingw32
This commit is contained in:
commit
d5c00cfab1
2 changed files with 7 additions and 0 deletions
6
nix-meson-build-support/big-objs/meson.build
Normal file
6
nix-meson-build-support/big-objs/meson.build
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
if host_machine.system() == 'windows'
|
||||||
|
# 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')
|
||||||
|
endif
|
|
@ -24,6 +24,7 @@ deps_public_maybe_subproject = [
|
||||||
dependency('nix-fetchers'),
|
dependency('nix-fetchers'),
|
||||||
]
|
]
|
||||||
subdir('nix-meson-build-support/subprojects')
|
subdir('nix-meson-build-support/subprojects')
|
||||||
|
subdir('nix-meson-build-support/big-objs')
|
||||||
|
|
||||||
boost = dependency(
|
boost = dependency(
|
||||||
'boost',
|
'boost',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue