1
0
Fork 0
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:
Brian McKenna 2025-01-31 22:52:57 +11:00
parent 177a067d66
commit 26539a087f
2 changed files with 5 additions and 0 deletions

View 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')