Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 651022382c7f8da46cb4872a545ee1da6d097d2a authored by Linus Torvalds on 04 November 2018, 23:37:52 UTC
Linux 4.20-rc1
Tip revision: 6510223
test-llvm-version.cpp
// SPDX-License-Identifier: GPL-2.0
#include <cstdio>
#include "llvm/Config/llvm-config.h"

#define NUM_VERSION (((LLVM_VERSION_MAJOR) << 16) + (LLVM_VERSION_MINOR << 8) + LLVM_VERSION_PATCH)
#define pass int main() {printf("%x\n", NUM_VERSION); return 0;}

#if NUM_VERSION >= 0x030900
pass
#else
# error This LLVM is not tested yet.
#endif
back to top