2014-04-22 10:07:08 +00:00
|
|
|
# Note that OCaml is compiled on all architectures. However
|
|
|
|
# on some (rare) architectures, only bytecode compilation is
|
|
|
|
# available. Use these macros to find out if native code
|
|
|
|
# compilation is available on a particular architecture.
|
|
|
|
|
|
|
|
# Architectures that support the OCaml native code compiler.
|
2017-08-08 07:58:38 +00:00
|
|
|
%ocaml_native_compiler aarch64 %{arm} %{ix86} ppc ppc64 ppc64le riscv64 s390x sparc sparcv9 x86_64
|
2014-04-22 10:07:08 +00:00
|
|
|
|
|
|
|
# Architectures that support native dynamic linking of OCaml code.
|
2017-08-08 07:58:38 +00:00
|
|
|
%ocaml_natdynlink aarch64 %{arm} %{ix86} ppc ppc64 ppc64le riscv64 s390x sparc sparcv9 x86_64
|
|
|
|
|
|
|
|
# Architectures that support profiling of native code (ocamlopt -p).
|
2019-12-06 14:12:11 +00:00
|
|
|
# This was removed in OCaml 4.09.
|
|
|
|
# https://github.com/ocaml/ocaml/pull/2314
|
|
|
|
%ocaml_native_profiling %{nil}
|