Skip to content

Commit 86030fe

Browse files
committed
BLD Move C-sources to the library
Otherwise, this led to errors when running `stack repl` as they were effectively included twice (for the executable and for the library). It needs to be repeated for the tests, though
1 parent 4ee348b commit 86030fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ github: ngless-toolkit/ngless
99
license: MIT
1010
license-file: COPYING
1111
language: GHC2021
12-
c-sources:
13-
- NGLess/Dependencies/embedded.c
14-
- NGLess/Data/FastQ.c
1512
default-extensions:
1613
- OverloadedStrings
1714
- LambdaCase
@@ -116,6 +113,9 @@ when:
116113

117114
library:
118115
source-dirs: NGLess/
116+
c-sources:
117+
- NGLess/Data/FastQ.c
118+
- NGLess/Dependencies/embedded.c
119119
when:
120120
- condition: 'flag(static)'
121121
ld-options:
@@ -148,6 +148,9 @@ tests:
148148
source-dirs:
149149
- NGLess # We cannot depend on NGLess because we compile with -DIS_BUILDING_TEST
150150
- Tests-Src/
151+
c-sources:
152+
- NGLess/Data/FastQ.c
153+
- NGLess/Dependencies/embedded.c
151154
cpp-options: -DIS_BUILDING_TEST
152155
dependencies:
153156
- HUnit >=1.3

0 commit comments

Comments
 (0)