Skip to content
Snippets Groups Projects
Commit e044aafb authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Remove references to Objective C.

parent ea571b4f
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,8 @@ Caveats:
COMPILATION AND INSTALL
Tarantool is written in C and Objective C.
To build, you will need GCC Objective C frontend
(gcc-objc package on most systems) or Apple CLang compiler.
Tarantool is written in C and C++.
To build, you will need GCC or Apple CLang compiler.
CMake is used for configuration management.
3 standard CMake build types are supported:
......
......@@ -16,7 +16,6 @@ if (CMAKE_C_COMPILER_ID STREQUAL Clang)
set(CMAKE_COMPILER_IS_GNUCXX OFF)
endif()
# TODO: clang version is not checked
if(CMAKE_COMPILER_IS_GNUCC)
# gcc and g++ >= 4.5 are supported
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
......@@ -77,43 +76,6 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions("-DNDEBUG" "-DNVALGRIND")
endif()
#
# Enable @try/@catch/@finaly syntax in Objective C code.
#
add_compile_flags("OBJC;OBJCXX"
"-fobjc-exceptions")
#
# Invoke C++ constructors/destructors in the Objective C class instances.
#
add_compile_flags("OBJCXX" "-fobjc-call-cxx-cdtors")
#
# Assume that all Objective-C message dispatches (e.g., [receiver message:arg])
# ensure that the receiver is not nil. This allows for more efficient entry
# points in the runtime to be used
#
if (CMAKE_COMPILER_IS_GNUCC)
add_compile_flags("OBJC;OBJCXX"
"-fno-nil-receivers")
endif()
if (CMAKE_COMPILER_IS_CLANG)
add_compile_flags("OBJC"
"-fobjc-nonfragile-abi"
"-fno-objc-legacy-dispatch")
endif()
if (CMAKE_COMPILER_IS_CLANGXX)
add_compile_flags("OBJCXX"
"-fobjc-nonfragile-abi"
"-fno-objc-legacy-dispatch")
elseif(CMAKE_COMPILER_IS_GNUCXX)
# Suppress deprecated warnings in objc/runtime-deprecated.h
add_compile_flags("OBJCXX"
" -Wno-deprecated-declarations")
endif()
macro(enable_tnt_compile_flags)
# Tarantool code is written in GNU C dialect.
# Additionally, compile it with more strict flags than the rest
......
......@@ -53,8 +53,7 @@
To build Tarantool from source, additionally:
<itemizedlist>
<listitem><para>CMake 2.6 or newer,</para></listitem>
<listitem><para>GCC 4.4 or newer, with gcc-objc (ObjectiveC)
language frontend or Clang 3.1 or newer,</para></listitem>
<listitem><para>GCC 4.5 or newer or Clang 3.1 or newer,</para></listitem>
<listitem><para>libreadline-dev, when compiling the
command line client.
</para></listitem>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment