From 9cf09d8044a78c363bbcef27aa6ad8403fb87a1d Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 21 Sep 2014 22:56:02 +0400 Subject: [PATCH] Add checking for minimal compiler version --- .gitignore | 2 ++ cds/compiler/clang/defs.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 80814439..5f11934a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ *.o /todo-2.0.txt /tests/data/dictionary.txt +/bin +obj diff --git a/cds/compiler/clang/defs.h b/cds/compiler/clang/defs.h index 55f7d793..078a0a6a 100644 --- a/cds/compiler/clang/defs.h +++ b/cds/compiler/clang/defs.h @@ -10,6 +10,11 @@ #define CDS_COMPILER__NAME ("clang " __clang_version__) #define CDS_COMPILER__NICK "clang" +#if CDS_COMPILER_VERSION < 30300 +# error "Compiler version error. Clang version 3.3.0 and above is supported" +#endif + + #if defined(_LIBCPP_VERSION) && !defined(CDS_USE_BOOST_ATOMIC) // Note: Clang libc++ atomic leads to program crash. // So, we use libcds atomic implementation -- 2.34.1