Skip to content

Commit c05115f

Browse files
committed
Split Glean.Derive out of glean:lib
So that `exe:glean` and `exe:glean-server` don't depend on the schemas.
1 parent 7095662 commit c05115f

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

glean.cabal.in

+14-3
Original file line numberDiff line numberDiff line change
@@ -832,12 +832,21 @@ executable gen-bytecode-hs
832832
glean:bytecode,
833833
glean:bytecode-instruction
834834

835-
library lib
835+
library lib-derive
836836
import: fb-haskell, fb-cpp, deps
837837
visibility: public
838838
hs-source-dirs: glean/lib
839839
exposed-modules:
840840
Glean.Derive
841+
build-depends:
842+
glean:client-hs,
843+
glean:if-glean-hs
844+
845+
library lib
846+
import: fb-haskell, fb-cpp, deps
847+
visibility: public
848+
hs-source-dirs: glean/lib
849+
exposed-modules:
841850
Glean.Util.CxxXRef
842851
Glean.Util.Declarations
843852
Glean.Util.Range
@@ -985,7 +994,7 @@ library indexers
985994
glean:db,
986995
glean:handler,
987996
glean:interprocess,
988-
glean:lib,
997+
glean:lib-derive,
989998
glean:lsif,
990999
glean:scip,
9911000
glean:stubs,
@@ -1031,7 +1040,7 @@ executable glean
10311040
glean:stubs,
10321041
glean:config,
10331042
glean:core,
1034-
glean:lib,
1043+
glean:lib-derive,
10351044
glean:util,
10361045
json,
10371046
split,
@@ -1109,6 +1118,7 @@ executable hiedb-indexer
11091118
glean:db,
11101119
glean:if-glean-hs,
11111120
glean:lib,
1121+
glean:lib-derive,
11121122
glean:schema,
11131123
glean:stubs,
11141124
glean:util,
@@ -1492,6 +1502,7 @@ library clang-derive-lib
14921502
glean:core,
14931503
glean:db,
14941504
glean:lib,
1505+
glean:lib-derive,
14951506
glean:schema,
14961507
glean:util,
14971508
vector-algorithms

glean/lang/clang/glean-clang.cabal

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ executable clang-derive
140140
glean:core,
141141
glean:db,
142142
glean:lib,
143+
glean:lib-derive,
143144
glean:schema,
144145
glean:util,
145146
vector-algorithms

0 commit comments

Comments
 (0)