forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26539a0
commit f62a287
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# 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') | ||
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 |