-
Notifications
You must be signed in to change notification settings - Fork 1
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
build: support --icu-data-dir configure switch #15
build: support --icu-data-dir configure switch #15
Conversation
re crash: I go into this in #6. Upstream patches in v8 pending to make it a softer err. Node could try loading ICU on its own and do something- gracefully exit from main() or such. But
|
@srl295 Thanks! Just adding the link to the V8 issue here, so that it's easier to find: https://code.google.com/p/v8/issues/detail?id=3348. |
8c4b059
to
b048092
Compare
e19dd8d
to
429e8b4
Compare
429e8b4
to
8afc5f6
Compare
@misterdjules v8 has fixed the crashing issue upstream. It now exits with a fatal err instead. Progress. |
@srl295 That's great, thank you! Two comments:
@srl295 @tjfontaine What do you think? |
|
|
Ok yes. The "stub+full" case will crash if it can't find the data. |
A few comments about this PR:
--icu-data-dir
in theMakefile
's target that builds the OS X package, since we haven't solved the cross-compilation issue (see build: fix icu support when target arch != host #12) yet and we need it for OS X packages.EDIT: the cross-compilation issue has been fixed by a recent change in the srl-v0.12-autoicu branch.
It seems that we should at least make V8 exits more gracefully with an error message that indicates the cause of the error.
ICU_DATA_DIR
macro with a relative path cannot work, as ICU would try to load the.dat
file relative to the current working directory. Thus, theconfigure
script either needs to always get an absolute path for--icu-data-dir
, or it needs to know about the installation prefix. This is why in this PR the prefix definition has been moved fromMakefile
toconfigure
.Fixes #13.