Skip to content

Commit

Permalink
Add naked-pointers flag to ocamlc -config output (#10531)
Browse files Browse the repository at this point in the history
* Add naked-pointers flag to `ocamlc -config` output
* add Changes entry
  • Loading branch information
damiendoligez committed Aug 22, 2021
1 parent 2642557 commit 851d0ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ Working version
when module inclusion fails.
(Antal Spector-Zabusky, review by Florian Angeletti)

- #10531: add naked_pointers to ocamlc -config exporting NAKED_POINTERS from
Makefile.config.
(Damien Doligez, review by Mark Shinwell and Gabriel Scherer)

### Internal/compiler-libs changes:

- #1599: add unset directive to ocamltest to clear environment variables before
Expand Down
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

0 comments on commit 851d0ff

Please sign in to comment.