-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bsc
seems to ignore -o output location for bs-specific artifacts
#395
Comments
Indeed, at least we should make sure May I ask about your use case? If you want to output js in a separate directory, we have a better option to do that: https://bloomberg.github.io/bucklescript/NPM-Support.html checkout |
The use-case is that we want the artifacts aggregated in a single directory that newcomers can backspace to delete, in case they screw up (just like for npm). More importantly, our workflow will likely use lots of symlinks through (I did try Renaming the artifacts are really important for us. It's for implementing namespaces (for compiling to native). |
I am interested in support of namespace, what would you expect the name of js files, since the name of js files also matters. Should it follow the -o ? |
Yes, just like (Moving the artifact is really important too) |
so for the first step, I would keep |
Thanks! It should just work. |
@chenglou try
note I would expect there might be other issues |
Thanks! The JS file still generates alongside the source file but I can change that with |
removing
Can you elaborate? so far as I know,
|
Yeah, it's just an extremely convenient way to link |
I am a bit lost, bsc does not generate cmo files, it generates cmj(for optimization) and js files |
Sorry yeah, I was talking about our current native compilation. It would be |
@chenglou I am unclear about the context, let me know what I could help. If bsc accept namespace as a command line option of the compiler, maybe we can embed it in the compiler level |
close this issue, feel free to reopen it when necessary |
For the record, since |
Repro:
bsc -c -o a src/hello.ml
This will generate a
a.cmi
in the current directory, andhello.cmj
andhello.js
in thesrc/
directory, contrary to the equivalentocamlc
command which generatesa.cmi
anda.cmo
in the current dir.The text was updated successfully, but these errors were encountered: