From ebfe5160242ba6f1fb7bd2a852baf4e1f617bea2 Mon Sep 17 00:00:00 2001 From: David Scott Date: Mon, 5 Jun 2017 16:57:35 +0100 Subject: [PATCH] Don't link PPX rewriters into clients The package cstruct.ppx contains helper functions for the PPX rewriter itself. Linking this code into applications makes them larger and also brings in a dependency on compiler-libs which pollutes the global module namespace with names like Types. See mirage/mirage-www#556 Signed-off-by: David Scott --- lib/jbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jbuild b/lib/jbuild index 5f6aeb8..947460c 100644 --- a/lib/jbuild +++ b/lib/jbuild @@ -2,7 +2,7 @@ ((name shared_memory_ring) (public_name shared-memory-ring) (c_names (barrier_stubs)) - (libraries (cstruct cstruct.ppx)) + (libraries (cstruct)) (wrapped false) (preprocess (pps (cstruct.ppx))) ))