From a3f54af94534f9ef8cfd56fee80a6f286518f706 Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Wed, 22 May 2019 17:43:57 -0400 Subject: [PATCH] Disable optimizations for Util and REPL to speed up -O1 builds. Turns out you can disable optimizations per-module. This is a good decision, as on my laptop GHC takes an appalling amount of time to finish building at `-O1`. Let's see if this is reflected in the time the builders take. (This should have no performance implications for CLI use of `semantic`, as only SpecHelpers and REPL import Util.) --- src/Semantic/REPL.hs | 2 +- src/Semantic/Util.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Semantic/REPL.hs b/src/Semantic/REPL.hs index 4a8a2e107..7a27e5e9f 100644 --- a/src/Semantic/REPL.hs +++ b/src/Semantic/REPL.hs @@ -1,5 +1,5 @@ {-# LANGUAGE GADTs, GeneralizedNewtypeDeriving, TypeOperators, UndecidableInstances #-} -{-# OPTIONS_GHC -Wno-missing-signatures #-} +{-# OPTIONS_GHC -Wno-missing-signatures -O0 #-} module Semantic.REPL ( rubyREPL ) where diff --git a/src/Semantic/Util.hs b/src/Semantic/Util.hs index 99fa40354..d21f89d5d 100644 --- a/src/Semantic/Util.hs +++ b/src/Semantic/Util.hs @@ -1,5 +1,5 @@ {-# LANGUAGE CPP, ConstraintKinds, Rank2Types, ScopedTypeVariables, TypeFamilies, TypeOperators #-} -{-# OPTIONS_GHC -Wno-missing-signatures #-} +{-# OPTIONS_GHC -Wno-missing-signatures -O0 #-} module Semantic.Util ( evalGoProject , evalPHPProject