You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a look at jbuild.ml. In particular, you're looking for uses of String_with_vars.t uses in the various t values which represent sexp parsers. This will you insert variables in the necessary fields.
Then, you'll be to eliminate String_with_vars.t values using String_with_vars.expand with a correct ~f function. Here you can refer to the expand_* family of functions in super_context.ml
Finally, keep in mind that we cannot support all variables in the installed stanza. For example, %{read:...} cannot be supported at the moment, because we're keeping the list of installed artifacts static, and hence cannot build anything before we know the full set of static artifacts.
I can compile an executable in (exe) linking mode and run it as a standalone program, but I can't link app.exe.o built in (object) mode with my XCode project because it has its own libasmrun.a dependency. (i.e I start having 'duplicate symbol' issues)
I can't remove libasmrun.a dependency in my xcode project because I'm running caml_main in its main function.
I didn't have such issues before, so I'm wondering if something changed in -output-complete-obj.
Activity
Isweet commentedon Jun 30, 2018
I've started poking at this, but first issue w/ Dune so it'll be slow. Feel free to scoop me for the sake of expedition.
rgrinberg commentedon Jun 30, 2018
Thanks for taking intitative @Isweet .
Have a look at jbuild.ml. In particular, you're looking for uses of
String_with_vars.tuses in the varioustvalues which represent sexp parsers. This will you insert variables in the necessary fields.Then, you'll be to eliminate
String_with_vars.tvalues usingString_with_vars.expandwith a correct~ffunction. Here you can refer to theexpand_*family of functions in super_context.mlFinally, keep in mind that we cannot support all variables in the installed stanza. For example,
%{read:...}cannot be supported at the moment, because we're keeping the list of installed artifacts static, and hence cannot build anything before we know the full set of static artifacts.Feel free to ask more questions.
Isweet commentedon Jun 30, 2018
I was able to figure out the parsing yesterday. I'll open a WIP PR sometime today.
I started looking at the expand functions in
super_context.mlto get an idea of how to useexpandinstring_with_vars.ml.Thanks for the direction, I'll follow-up if I get stuck.
rauanmayemir commentedon Jul 23, 2018
Has anything changed here recently?
I can compile an executable in
(exe)linking mode and run it as a standalone program, but I can't linkapp.exe.obuilt in(object)mode with my XCode project because it has its ownlibasmrun.adependency. (i.e I start having 'duplicate symbol' issues)I can't remove
libasmrun.adependency in my xcode project because I'm runningcaml_mainin itsmainfunction.I didn't have such issues before, so I'm wondering if something changed in
-output-complete-obj.My
jbuildfile:And then I run
jbuilder build @install.Note: I'm on
ocaml 4.06andjbuilder 1.0.1.rauanmayemir commentedon Jul 30, 2018
@diml I created a discuss thread here, should I open a gh issue as well?
rgrinberg commentedon Dec 21, 2018
Fixed by @mseri