Add checking for minimal compiler version
authorkhizmax <libcds.dev@gmail.com>
Sun, 21 Sep 2014 18:56:02 +0000 (22:56 +0400)
committerkhizmax <libcds.dev@gmail.com>
Sun, 21 Sep 2014 18:56:02 +0000 (22:56 +0400)
.gitignore
cds/compiler/clang/defs.h

index 8081443990928ae43ee66b430ed22ff8c3ff1625..5f11934ae386c8139eef970bbc1d8de64405a00c 100644 (file)
@@ -7,3 +7,5 @@
 *.o
 /todo-2.0.txt
 /tests/data/dictionary.txt
+/bin
+obj
index 55f7d793dd5b04f16ffe1cc0b2165acbac8a46b2..078a0a6ad975577ad1eb86584fc575d7fd036df9 100644 (file)
 #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