Summary:public Now use -safe-string and the Bytes module and bytes type. Reviewed By: jvillard Differential Revision: D2949369 fb-gh-sync-id: 58aa688 shipit-source-id: 58aa688master
parent
fc589ccf34
commit
a73d7be9a8
@ -1,22 +0,0 @@
|
||||
dnl Copyright (c) 2015 - present Facebook, Inc.
|
||||
dnl All rights reserved.
|
||||
dnl
|
||||
dnl This source code is licensed under the BSD style license found in the
|
||||
dnl LICENSE file in the root directory of this source tree. An additional grant
|
||||
dnl of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
AC_DEFUN([AC_OCAML_CHECK_NATIVE_BYTES],
|
||||
[dnl
|
||||
OCAML_HAS_NATIVE_BYTES=no
|
||||
AC_MSG_CHECKING([if OCaml supports the native 'bytes' type])
|
||||
cat > conftest.ml <<EOF
|
||||
let b:bytes = Bytes.create 4
|
||||
EOF
|
||||
if $OCAMLC -c conftest.ml >&5 2>&5 ; then
|
||||
AC_MSG_RESULT([yes])
|
||||
OCAML_HAS_NATIVE_BYTES=yes
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
AC_SUBST([OCAML_HAS_NATIVE_BYTES])
|
||||
])
|
@ -1,20 +0,0 @@
|
||||
dnl Copyright (c) 2015 - present Facebook, Inc.
|
||||
dnl All rights reserved.
|
||||
dnl
|
||||
dnl This source code is licensed under the BSD style license found in the
|
||||
dnl LICENSE file in the root directory of this source tree. An additional grant
|
||||
dnl of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
AC_DEFUN([AC_OCAMLC_CHECK_SAFE_STRING],
|
||||
[dnl
|
||||
OCAMLC_HAS_SAFE_STRING=no
|
||||
AC_MSG_CHECKING([if $OCAMLC supports the '-safe-string' flag])
|
||||
printf "" > conftest.ml
|
||||
if $OCAMLC -safe-string -c conftest.ml >&5 2>&5 ; then
|
||||
AC_MSG_RESULT([yes])
|
||||
OCAMLC_HAS_SAFE_STRING=yes
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
AC_SUBST([OCAMLC_HAS_SAFE_STRING])
|
||||
])
|
Loading…
Reference in new issue