Skip to content
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

Add naked-pointers flag to ocamlc -config output #10531

Merged
merged 2 commits into from
Aug 22, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions utils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ config.ml: config.mlp $(ROOTDIR)/Makefile.config Makefile
$(call SUBST,FORCE_SAFE_STRING) \
$(call SUBST,DEFAULT_SAFE_STRING) \
$(call SUBST,WINDOWS_UNICODE) \
$(call SUBST,NAKED_POINTERS) \
$(call SUBST,SUPPORTS_SHARED_LIBRARIES) \
$(call SUBST,SYSTEM) \
$(call SUBST,SYSTHREAD_SUPPORT) \
Expand Down
5 changes: 5 additions & 0 deletions utils/config.mli
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ val function_sections : bool
val windows_unicode: bool
(** Whether Windows Unicode runtime is enabled *)

val naked_pointers : bool
(** Whether the runtime supports naked pointers

@since 4.14.0 *)

val supports_shared_libraries: bool
(** Whether shared libraries are supported

Expand Down
2 changes: 2 additions & 0 deletions utils/config.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ let with_cmm_invariants = %%WITH_CMM_INVARIANTS%%
let safe_string = %%FORCE_SAFE_STRING%%
let default_safe_string = %%DEFAULT_SAFE_STRING%%
let windows_unicode = %%WINDOWS_UNICODE%% != 0
let naked_pointers = %%NAKED_POINTERS%%

let flat_float_array = %%FLAT_FLOAT_ARRAY%%

Expand Down Expand Up @@ -203,6 +204,7 @@ let configuration_variables =
p_bool "afl_instrument" afl_instrument;
p_bool "windows_unicode" windows_unicode;
p_bool "supports_shared_libraries" supports_shared_libraries;
p_bool "naked_pointers" naked_pointers;

p "exec_magic_number" exec_magic_number;
p "cmi_magic_number" cmi_magic_number;
Expand Down