Commit 45b4a92e authored by Mathieu Giraud's avatar Mathieu Giraud

vidjil.cpp: warns when clang or gcc is too old

Closes #2631.
parent 1db9a920
Pipeline #6474 passed with stages
in 19 minutes and 25 seconds
// Check compiler
#if defined(__clang__)
#if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30300
#warning "Vidjil needs a C++11 compiler such as clang >= 3.3 - see http://vidjil.org/doc/algo.html"
#endif
#elif defined(__GNUC__)
#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800
#warning "Vidjil needs a C++11 compiler such as gcc >= 4.8 - see http://vidjil.org/doc/algo.html"
#endif
#endif
......@@ -35,6 +35,7 @@
#include <sys/types.h>
#include <unistd.h>
#include "core/check-compiler.h"
#include "core/tools.h"
#include "core/json.h"
#include "core/germline.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment