Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buck-multiplex-worker/BUCK
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export_file("Main.hs", visibility = ["PUBLIC"])
[export_file(f + ".hs", visibility = ["PUBLIC"]) for f in ["Main", "Message", "Pool", "Server", "Util", "Worker"]]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 17 additions & 2 deletions buck-multiplex-worker/buck-multiplex-worker.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,33 @@ build-type: Simple

executable multiplex-worker
main-is: Main.hs
other-modules:
Message
Pool
Server
Util
Worker
hs-source-dirs: .
ghc-options: -Wall -Widentities -Wincomplete-uni-patterns -Wmissing-deriving-strategies -Wredundant-constraints -Wunused-type-patterns -Wunused-packages -threaded -rtsopts -with-rtsopts=-N
build-depends:
base ==4.*,
binary,
bytestring,
containers,
deepseq,
directory,
extra,
filepath,
ghc,
ghc-persistent-worker-comm,
ghc-persistent-worker-plugin,
ghc-persistent-worker-server,
network,
optparse-applicative,
process,
stm,
text,
time,
transformers,
unix,
vector,
buck-worker
default-language: GHC2021
Expand Down
3 changes: 0 additions & 3 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
packages: ./plugin
./comm
./server
./client
./instrument
./buck-worker
./buck-multiplex-worker
Expand Down
Empty file removed client/CHANGELOG.md
Empty file.
Empty file removed client/LICENSE
Empty file.
100 changes: 0 additions & 100 deletions client/app/Client.hs

This file was deleted.

27 changes: 0 additions & 27 deletions client/ghc-persistent-worker-client.cabal

This file was deleted.

Empty file removed comm/CHANGELOG.md
Empty file.
Empty file removed comm/LICENSE
Empty file.
35 changes: 0 additions & 35 deletions comm/ghc-persistent-worker-comm.cabal

This file was deleted.

1 change: 0 additions & 1 deletion comm/src/BUCK

This file was deleted.

11 changes: 6 additions & 5 deletions plugin/src/Internal/Cache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import GHC.Utils.Outputable (SDoc, comma, doublePrec, fsep, hang, nest, punctuat
import Internal.Log (Log, logd)
import System.Environment (lookupEnv)

#if __GLASGOW_HASKELL__ >= 911
#if __GLASGOW_HASKELL__ >= 911 || defined(MWB)

import Data.IORef (IORef, newIORef)
import qualified Data.Map.Lazy as LazyMap
Expand All @@ -61,6 +61,8 @@ import GHC.Unit.Module.Graph (ModuleGraphNode (..), mgModSummaries', mkModuleGra

#endif

import GHC.Unit.Module.Graph (ModuleGraph, unionMG)

data ModuleArtifacts =
ModuleArtifacts {
iface :: ModIface,
Expand Down Expand Up @@ -183,7 +185,7 @@ data BinPath =
}
deriving stock (Eq, Show)

#if __GLASGOW_HASKELL__ >= 911
#if __GLASGOW_HASKELL__ >= 911 || defined(MWB)

data FinderState =
FinderState {
Expand Down Expand Up @@ -539,7 +541,7 @@ report logVar workerId target cache = do

workerDesc wid = text (" (" ++ wid ++ ")")

#if __GLASGOW_HASKELL__ >= 911
#if __GLASGOW_HASKELL__ >= 911 || defined(MWB)

-- | This replacement of the Finder implementation has the sole purpose of recording some cache stats, for now.
-- While its mutable state is allocated separately and shared across sessions, this doesn't really make a difference at
Expand Down Expand Up @@ -598,7 +600,7 @@ newFinderCache _ Cache {finder = FinderState {cache}} _ = pure cache

withHscState :: HscEnv -> (MVar OrigNameCache -> MVar (Maybe LoaderState) -> MVar SymbolMap -> IO a) -> IO (Maybe a)
withHscState HscEnv {hsc_interp, hsc_NC = NameCache {nsNames}} use =
#if __GLASGOW_HASKELL__ >= 911
#if __GLASGOW_HASKELL__ >= 911 || defined(MWB)
for hsc_interp \ Interp {interpLoader = Loader {loader_state}, interpLookupSymbolCache} ->
liftIO $ use nsNames loader_state interpLookupSymbolCache
#else
Expand Down Expand Up @@ -683,7 +685,6 @@ storeIface _ _ =

storeHug :: HscEnv -> Cache -> IO Cache
storeHug hsc_env cache = do
-- dbgp (hang (text "Storing HUG:") 2 (showHugShort merged))
pure cache {hug = Just merged}
where
merged = maybe id (unitEnv_union mergeHugs) cache.hug hsc_env.hsc_unit_env.ue_home_unit_graph
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/Internal/MakeFile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import GHC.Unit (homeUnitId)
import GHC.Utils.Panic.Plain
#endif

#if !defined(BUCK)
#if !defined(MWB)
depJSON :: DynFlags -> Maybe FilePath
depJSON _ = Nothing

Expand Down
2 changes: 1 addition & 1 deletion plugin/src/Internal/MakeFile/JSON.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import GHC.Utils.Misc
import GHC.Utils.Outputable
import System.FilePath (normalise)

#if !defined(BUCK)
#if !defined(MWB)
import GHC.Data.FastString (lexicalCompareFS)

instance Ord PackageId where
Expand Down
Empty file removed server/CHANGELOG.md
Empty file.
Empty file removed server/LICENSE
Empty file.
54 changes: 0 additions & 54 deletions server/app/Main.hs

This file was deleted.

56 changes: 0 additions & 56 deletions server/ghc-persistent-worker-server.cabal

This file was deleted.

1 change: 0 additions & 1 deletion server/lib/BUCK

This file was deleted.

Loading