Skip to content

Commit

Permalink
fixup Use build_config.h instead of -DOCAML_STDLIB_DIR
Browse files Browse the repository at this point in the history
Auto-generation comment added to the top of runtime/build_config.h
  • Loading branch information
dra27 committed Jul 15, 2021
1 parent 7607721 commit 5eafc6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ OCaml 4.13.0
C string constant on Windows when building the runtime. Hardens the generation
of the constant on Unix for paths with backslashes, double-quotes and
newlines.
(David Allsopp, review by ???)
(David Allsopp, review by Florian Angeletti)

### Bug fixes:

Expand Down
5 changes: 3 additions & 2 deletions runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,9 @@ sak$(EXE): sak.$(O)

C_LITERAL = $(shell ./sak$(EXE) translate '$(1)')

build_config.h: | sak$(EXE)
echo '#define OCAML_STDLIB_DIR $(call C_LITERAL,$(LIBDIR))' > $@
build_config.h: $(ROOTDIR)/Makefile.config | sak$(EXE)
echo '/* This file is generated from $(ROOTDIR)/Makefile.config */' > $@
echo '#define OCAML_STDLIB_DIR $(call C_LITERAL,$(LIBDIR))' >> $@
echo '#define HOST "$(HOST)"' >> $@

# Libraries and programs
Expand Down

0 comments on commit 5eafc6b

Please sign in to comment.