disable the gcc abi setting

pull/81/head
Dibyendu Majumdar 8 years ago
parent f2a88ca3e3
commit 249a4a8acb

@ -95,7 +95,7 @@ if (CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
set(CMAKE_CXX_FLAGS_DEBUG "${SANITIZER_FLAGS} -fno-omit-frame-pointer -Werror -fno-rtti -O0 -g3 -Wall -Wno-sign-compare -std=c++11 -fno-exceptions -DLUA_COMPAT_5_2 ${CXX_OPTIONS}")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${SANITIZER_FLAGS} -Werror -fno-rtti -O1 -g3 -Wall -Wno-sign-compare -std=c++11 -fno-exceptions -DLUA_COMPAT_5_2 ${CXX_OPTIONS}")
# In case we are using gcc 5.1 set ABI version
add_definitions("-D_GLIBCXX_USE_CXX11_ABI=0")
# add_definitions("-D_GLIBCXX_USE_CXX11_ABI=0")
endif ()
if (APPLE)

@ -323,7 +323,7 @@ The build is CMake based.
Building LLVM on Windows
------------------------
I built LLVM 3.7.0 from source. I used the following sequence from the VS2015 command window::
I built LLVM 3.7 from source. I used the following sequence from the VS2015 command window::
cd \github\llvm
mkdir build
@ -336,7 +336,7 @@ Note that if you perform a Release build of LLVM then you will also need to do a
Building LLVM on Ubuntu
-----------------------
On Ubuntu I found that the official LLVM distributions don't work with CMake. The CMake config files appear to be broken.
So I ended up downloading and building LLVM 3.7.0 from source and that worked. The approach is similar to that described for MAC OS X below.
So I ended up downloading and building LLVM 3.7 from source and that worked. The approach is similar to that described for MAC OS X below.
Building LLVM on MAC OS X
-------------------------
@ -367,6 +367,12 @@ On Ubuntu I use::
cmake -DLLVM_JIT=ON -DCMAKE_INSTALL_PREFIX=$HOME/ravi -DLLVM_DIR=$HOME/LLVM/share/llvm/cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ..
make
Note that on a clean install of Ubuntu 15.10 I had to install following packages:
* cmake
* git
* libreadline-dev
On MAC OS X I use::
cd build

Loading…
Cancel
Save