Skip to content

Commit

Permalink
use libc++ instead of libstdc++ with Clang on Linux
Browse files Browse the repository at this point in the history
to fix this error:

/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstddef:51:11:
error: no member named 'max_align_t' in the global namespace using ::max_align_t;

related:

catchorg/Catch2#334
  • Loading branch information
jeffhammond committed Jan 1, 2016
1 parent 1d7c189 commit 65debe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ else
# Assume CXX = clang
export CC=/usr/bin/clang-3.6
export CXX=/usr/bin/clang-3.6
export CXXFLAGS="-stdlib=libc++"
export LDFLAGS="-fdefine-sized-deallocation"
fi
export F77=/usr/bin/gfortran-$GCC_VERSION
Expand Down

0 comments on commit 65debe7

Please sign in to comment.