Skip to content

Commit

Permalink
Define OCAML_STDLIB_DIR in runtime/Makefile rather than in s.h
Browse files Browse the repository at this point in the history
  • Loading branch information
shindere committed Sep 25, 2018
1 parent 132b3a1 commit 51493c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ Working version
(Sébastien Hinderer, review by Xavier Leroy, Damien Doligez, Gabriel
Scherer and Armaël Guéneau)

* GPR#2059: stop defining OCAML_STDLIB_DIR in s.h.
(Sébastien Hinderer, review by David Allsopp and Damien Doligez)

* GPR#2066: remove the standard_runtime configuration variable.
(Sébastien Hinderer, review by Xavier Leroy, Stephen Dolan and
Damien Doligez)
Expand Down
1 change: 0 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,6 @@ config ARCMD "${TOOLPREF}ar"
# Write the OS type (Unix or Cygwin)

echo "#define OCAML_OS_TYPE \"$ostype\"" >> s.h
echo "#define OCAML_STDLIB_DIR \"$libdir\"" >> s.h

# Do #! scripts work?

Expand Down
3 changes: 3 additions & 0 deletions runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ ifeq "$(UNIX_OR_WIN32)" "win32"
# pre-Visual Studio 2013 compilers where \x is a non-standard alias for \u.
OCAML_STDLIB_DIR = $(shell echo $(LIBDIR)| iconv -t JAVA | sed -e 's/\\u/\\x/g')
OC_CPPFLAGS += -DOCAML_STDLIB_DIR='L"$(OCAML_STDLIB_DIR)"'
else # Unix
OCAML_STDLIB_DIR = $(LIBDIR)
OC_CPPFLAGS += -DOCAML_STDLIB_DIR='"$(OCAML_STDLIB_DIR)"'
endif

OC_CPPFLAGS += $(IFLEXDIR)
Expand Down

0 comments on commit 51493c4

Please sign in to comment.