Commit b4e69655 authored by Valentin Reis's avatar Valentin Reis
Browse files

[fix] removes the "resources" generation from 'all' make target.

This allows avoiding a hard-to-debug segfault that pops up when running
resource generation from a non-fresh clone. This change is legitimate because
we do resource generation in CI/pre-commit.
parent af2ce96b
Pipeline #12101 passed with stages
in 3 minutes and 59 seconds
......@@ -99,10 +99,10 @@ dhall-format:
resource-propagation: pynrm/nrm/schemas/downstreamEvent.json\
libnrm/src/nrm_messaging.h
pynrm/nrm/schemas/downstreamEvent.json: resources
pynrm/nrm/schemas/downstreamEvent.json:
cp resources/schemas/downstream.json $@
libnrm/src/nrm_messaging.h: resources
libnrm/src/nrm_messaging.h:
cp resources/nrm_messaging.h $@
.PHONY:resources
......@@ -114,7 +114,7 @@ resources:
buildInputs = [ cabal-install ];
}
' --run bash <<< '
cd hsnrm; cabal v2-run hsnrm-extra/Codegen.hs ../resources
cd hsnrm; cabal v2-run nrm-gen ../resources
'
.PHONY: examples
......
......@@ -28,7 +28,6 @@ executable pynrm.so
MultiWayIf NoTemplateHaskell BlockArguments GADTs FlexibleContexts
TypeOperators DataKinds PolyKinds AllowAmbiguousTypes
FunctionalDependencies UndecidableInstances
extra-lib-dirs: /nix/store/lz67bgzcwjf8wf23j2cb69g01pa7x4sf-ghc-8.6.5/lib/ghc-8.6.5/rts/
ghc-options: -Wall -O0 -Wcompat -Wincomplete-uni-patterns
-Wmissing-home-modules -Widentities -Wredundant-constraints
-Wcpp-undef -fwarn-tabs -fwarn-unused-imports
......@@ -41,7 +40,6 @@ executable pynrm.so
-Wmissing-export-lists -Wmissing-home-modules -Widentities
-Wredundant-constraints -Wpartial-fields -Wmissed-specialisations
-Wall-missed-specialisations -fPIC -shared -no-hs-main -dynamic
-lHSrts-ghc8.6.5
build-depends:
hsnrm -any,
base -any,
......@@ -54,3 +52,10 @@ executable pynrm.so
bytestring -any,
enclosed-exceptions -any
executable nrm-gen
main-is: Codegen.hs
default-language: Haskell2010
build-depends:
hsnrm,
base,
protolude
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment