From: khizmax Date: Sun, 21 Sep 2014 18:56:02 +0000 (+0400) Subject: Add checking for minimal compiler version X-Git-Tag: v2.0.0~311 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9cf09d8044a78c363bbcef27aa6ad8403fb87a1d;p=libcds.git Add checking for minimal compiler version --- 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