On Thu, Feb 23, 2017, at 08:27 AM, Nathan Froyd wrote: > On Thu, Feb 23, 2017 at 1:25 AM, Henri Sivonen <hsivo...@hsivonen.fi> > wrote: > >> Alternately you could just generate it at build time, and we could pass > >> the path to $(DIST)/include in a special environment variable so you > >> could put the header in the right place. > > > > So just https://doc.rust-lang.org/std/env/fn.var.html in build.rs? Any > > naming conventions for the special variable? (I'm inferring from the > > way you said it that DIST itself isn't being passed to the build.rs > > process. Right?) > > We already pass MOZ_DIST as $(DIST)/include, fwiw: > > http://dxr.mozilla.org/mozilla-central/source/config/rules.mk#941
n.b.: that shows us passing `MOZ_DIST=$(ABS_DIST)`, so you could use `MOZ_DIST/include` in a Cargo build script. -Ted _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform