mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
11923381fa
This makes sure that C dependencies like gRPC or zlib get compiled with optimizations. I patched rules_haskell to use -O instead of -O2 since the latter slows down compilation while not making things faster (according to my measurements).
14 lines
509 B
Diff
14 lines
509 B
Diff
diff --git a/haskell/private/actions/compile.bzl b/haskell/private/actions/compile.bzl
|
|
index ac8725f5..3f6e4b40 100644
|
|
--- a/haskell/private/actions/compile.bzl
|
|
+++ b/haskell/private/actions/compile.bzl
|
|
@@ -250,7 +250,7 @@ def _compilation_defaults(hs, cc, java, dep_info, plugin_dep_info, cc_info, srcs
|
|
|
|
# Compilation mode. Allow rule-supplied compiler flags to override it.
|
|
if hs.mode == "opt":
|
|
- args.add("-O2")
|
|
+ args.add("-O")
|
|
|
|
args.add("-static")
|
|
if with_profiling:
|