mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 17:28:46 +03:00
langauge: suppress warnings for unrecognised pragams in upgrades (#2711)
This make the build of upgrade modules a bit more quiet. The warnings appear because in the generated generic instances there is an unrecognised {-# NO_OVERLAPP #-} pragma annotation.
This commit is contained in:
parent
0e80f75ff4
commit
d5c6d93772
@ -733,7 +733,8 @@ execMigrate projectOpts opts0 inFile1_ inFile2_ mbDir = do
|
||||
"daml build --init-package-db=no" <> " --package " <>
|
||||
escape (show (pkgName1, [(m, m ++ "A") | m <- eqModNamesStr])) <>
|
||||
" --package " <>
|
||||
escape (show (pkgName2, [(m, m ++ "B") | m <- eqModNamesStr]))
|
||||
escape (show (pkgName2, [(m, m ++ "B") | m <- eqModNamesStr])) <>
|
||||
" --ghc-option -Wno-unrecognised-pragmas"
|
||||
forM_ eqModNames $ \m@(LF.ModuleName modName) -> do
|
||||
[genSrc1, genSrc2] <-
|
||||
forM [(pkgId1, lfPkg1), (pkgId2, lfPkg2)] $ \(pkgId, pkg) -> do
|
||||
|
Loading…
Reference in New Issue
Block a user