mirror of
https://github.com/NixOS/nix
synced 2025-06-24 18:01:16 +02:00
Only enable big-obj on Windows
This commit is contained in:
parent
26539a087f
commit
f62a287163
1 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,6 @@
|
||||||
|
if host_machine.system() == 'windows'
|
||||||
# libexpr's primops creates a large object
|
# libexpr's primops creates a large object
|
||||||
# Without the following flag, we'll get errors when cross-compiling to mingw32:
|
# 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'
|
# 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')
|
add_project_arguments([ '-Wa,-mbig-obj' ], language: 'cpp')
|
||||||
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue