-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Install only headers required by julia.h #17745
Conversation
src/support/uv-threadpool.h \ | ||
src/support/uv-unix.h \ | ||
src/support/uv-version.h \ | ||
src/support/uv.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these uv*.h
aren't in src/support
, they're done on a different line
I think this would have less chance of going stale if we filtered out the specific ones we know we don't need. Or move them to a different location like |
I was thinking of actually testing the installed libjulia by building the embedding example:
Any idea why the linker cannot find |
yeah #8757 has been open for a while. I think you need a |
Now the example compiles but fails to run:
Which variable sets the path to the system image? |
|
It seems to work now:
For the purpose of testing this is fine, but why is |
See Line 498 in 643bac8
getenv to allow you to point libjulia to use a different system image path if you don't have the command-line executable available - so exactly in the embedding case. A lot of people do seem to mistakenly set that variable to the wrong thing and Julia fails to start because of it, so we should document that better or pick a more specific name.
|
Have you thought about an |
The install tree should look like that, but the source tree doesn't necessarily have to. |
Indeed. It is suggestion to make the developer aware that these are public headers. |
Do note that |
@@ -324,6 +324,25 @@ define stringreplace | |||
$(build_depsbindir)/stringreplace $$(strings -t x - $1 | grep '$2' | awk '{print $$1;}') '$3' 255 "$(call cygpath_w,$1)" | |||
endef | |||
|
|||
JL_HEADERS := \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My prior feedback is now collapsed at #17745 (comment) still applies, I don't like this form where JL_HEADERS
needs to be kept up to date. A shorter exclusions list of things that are currently included in src/support/*.h
but aren't needed would be more maintainable.
Closes #17657