Skip to content

Commit

Permalink
Remove non-functional --split-obj from gbc build (#1009)
Browse files Browse the repository at this point in the history
The stack --split-obj option is currently not working on Windows. When
it is enabled, builds fail with errors like:

    .stack-work\dist\e626a42b\build\Data\Orphans_o_split: getDirectoryContents:findFirstFile: does not exist (The system cannot find the path specified.)

--split-obj is a preview feature, so this isn't unexpected.

For now, removing this flag from the MinSizeRel configuration.
  • Loading branch information
chwarr authored and lalo committed Nov 14, 2019
1 parent 74d3cde commit a490113
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function (add_stack_build target)
list (APPEND options $<$<CONFIG:MinSizeRel>:--executable-stripping>)
list (APPEND options $<$<CONFIG:MinSizeRel>:--ghc-options=-O2>)
list (APPEND options $<$<CONFIG:MinSizeRel>:--library-stripping>)
list (APPEND options $<$<CONFIG:MinSizeRel>:--split-objs>)

list (APPEND options $<$<CONFIG:Release>:--executable-stripping>)
list (APPEND options $<$<CONFIG:Release>:--ghc-options=-O2>)
Expand Down

0 comments on commit a490113

Please sign in to comment.