forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Relocatable] 7: Implement --enable-relative
#162
Open
dra27
wants to merge
10
commits into
installation-tests
Choose a base branch
from
enable-relative
base: installation-tests
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dra27
force-pushed
the
installation-tests
branch
from
September 25, 2024 10:52
74a1509
to
5c0e92a
Compare
dra27
force-pushed
the
enable-relative
branch
2 times, most recently
from
September 25, 2024 12:28
6e500a1
to
13d88d6
Compare
dra27
force-pushed
the
installation-tests
branch
from
September 25, 2024 21:55
5c0e92a
to
585dd30
Compare
dra27
force-pushed
the
enable-relative
branch
from
September 25, 2024 21:56
13d88d6
to
886f8ad
Compare
dra27
force-pushed
the
installation-tests
branch
3 times, most recently
from
September 29, 2024 10:28
ca4085f
to
27bb7a4
Compare
dra27
force-pushed
the
enable-relative
branch
4 times, most recently
from
September 29, 2024 13:25
9491cb7
to
fd5eb89
Compare
dra27
force-pushed
the
installation-tests
branch
2 times, most recently
from
September 29, 2024 20:27
50b5af3
to
3f264c8
Compare
dra27
force-pushed
the
enable-relative
branch
2 times, most recently
from
September 29, 2024 21:07
8f9dc09
to
a157b8b
Compare
dra27
force-pushed
the
installation-tests
branch
from
September 30, 2024 14:17
3f264c8
to
9f8d4eb
Compare
dra27
force-pushed
the
enable-relative
branch
3 times, most recently
from
September 30, 2024 18:08
b1e4a3b
to
10198ac
Compare
dra27
force-pushed
the
installation-tests
branch
2 times, most recently
from
October 3, 2024 20:13
9ae7dfd
to
3680fcf
Compare
dra27
force-pushed
the
installation-tests
branch
from
October 3, 2024 20:45
3680fcf
to
80e6074
Compare
dra27
force-pushed
the
installation-tests
branch
from
October 4, 2024 08:02
80e6074
to
095026f
Compare
dra27
force-pushed
the
installation-tests
branch
4 times, most recently
from
October 18, 2024 12:32
4cf9c3f
to
027d320
Compare
dra27
force-pushed
the
enable-relative
branch
2 times, most recently
from
October 18, 2024 15:36
4714b67
to
4fe33c5
Compare
dra27
force-pushed
the
installation-tests
branch
from
October 18, 2024 16:11
027d320
to
9a114ce
Compare
dra27
force-pushed
the
enable-relative
branch
2 times, most recently
from
October 18, 2024 21:45
e68b26a
to
ccc4851
Compare
dra27
force-pushed
the
installation-tests
branch
2 times, most recently
from
October 19, 2024 09:01
ea49c99
to
b236eec
Compare
dra27
force-pushed
the
enable-relative
branch
from
October 19, 2024 09:01
ccc4851
to
8964c08
Compare
dra27
force-pushed
the
installation-tests
branch
4 times, most recently
from
October 22, 2024 10:46
510992a
to
8491e08
Compare
dra27
force-pushed
the
enable-relative
branch
from
October 22, 2024 13:14
8964c08
to
a05d2e2
Compare
dra27
force-pushed
the
installation-tests
branch
from
October 23, 2024 13:34
8491e08
to
cfda79b
Compare
The Windows implementation caml_stat_strdup_to_utf16 returned NULL on OOM, where caml_stat_strdup raises Out_of_memory. Windows implementation fixed to raise Out_of_memory. caml_stat_strdup_noexc_to_os to be used in the one place in the runtime where NULL should in fact be returned.
Allows conversion of arbitrary char/wchar_t sequences by allowing the number of characters copied to be specified. The output length of the encoding can also be returned by these functions.
Computes the relative directory from --bindir to --libdir.
Returns an OCaml string as a char_os C string literal.
Converts an OCaml string in UTF-8 to a bytes consisting of the char_os representation of that string.
When linking an executable, allows extra global string values to be specified. In particular, this provides the ability to override caml_standard_library_default.
When configured with --enable-relative, the runtime uses the directory of the executable to determine the location of the Standard Library. Thus, ocamlrun and the compilers look for ../lib/ocaml by default. This is implemented by changing caml_standard_library_default to be a relative path, and then computing the actual value at startup (for bytecode) and when queried (for native, since it is only ever used if Dynlink is being used). Executables (and objects) produced by the compiler always have an absolute value of caml_standard_library_default. ocamlc.opt and ocamlopt.opt are built using -set-global-string to force caml_standard_library_default to stay a relative value.
In native code, Sys.interpreter is simply Sys.executable_name, but in bytecode it is the path to the actual interpreter (which will only be Sys.executable_name for -custom or -output-complete-* programs)
dra27
force-pushed
the
enable-relative
branch
from
October 24, 2024 08:45
a05d2e2
to
d9a2f3a
Compare
dra27
force-pushed
the
installation-tests
branch
from
October 24, 2024 08:45
cfda79b
to
6ff1ea2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR sits on #158