summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@college-de-france.fr>2022-10-04 16:09:52 +0200
committerXavier Leroy <xavier.leroy@college-de-france.fr>2022-10-10 15:03:22 +0200
commit6b7c5a51a54adeeed2e8ed0138618c1c8c102d81 (patch)
tree9fa3374108ac5d082cc0c60c6fc82ddb738462db /Makefile
parentd1b5644831ccb7f6bec72f5e8f71ef66443e43ea (diff)
downloadocaml-6b7c5a51a54adeeed2e8ed0138618c1c8c102d81.tar.gz
Always access caml_state directly if we're in the core runtime system
There's no risk of accessing across DLLs in this case. Add the IN_CAML_RUNTIME preprocessor define, which is set when producing object files in runtime/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b1b56a4c36..0ad7597d70 100644
--- a/Makefile
+++ b/Makefile
@@ -717,7 +717,7 @@ libasmrunpic_OBJECTS = $(runtime_NATIVE_C_SOURCES:.c=.npic.$(O)) \
## General (non target-specific) assembler and compiler flags
-runtime_CPPFLAGS = -DCAMLDLLIMPORT=
+runtime_CPPFLAGS = -DCAMLDLLIMPORT= -DIN_CAML_RUNTIME
ocamlrund_CPPFLAGS = -DDEBUG
ocamlruni_CPPFLAGS = -DCAML_INSTR