From c3d1ae5700cfba6070293ad1bb5a6c198c631195 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Thu, 23 Apr 2020 22:36:58 +0800 Subject: [PATCH] Add note about LLVM 8+ not being supported yet. Issue #392 --- README.md | 4 ++-- m4/ax_llvm_c.m4 | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 95aa00016..ceb1a9c1f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![Build Status](https://travis-ci.org/nickg/nvc.svg?branch=master)](https://travis-ci.org/nickg/nvc) [![Windows status](https://ci.appveyor.com/api/projects/status/7eo8mjn98misbhva/branch/master?svg=true)](https://ci.appveyor.com/project/nickg72247/nvc/branch/master) -[![Join the chat at https://gitter.im/nvc-vhdl/Lobby](https://badges.gitter.im/nvc-vhdl/Lobby.svg)](https://gitter.im/nvc-vhdl/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) NVC is a GPLv3 VHDL compiler and simulator aiming for IEEE 1076-2002 compliance. See these [blog posts](http://www.doof.me.uk/category/vhdl/) for background @@ -52,7 +51,8 @@ To build from a released tarball: sudo make install To use a specific version of LLVM add `--with-llvm=/path/to/llvm-config` -to the configure command. LLVM 3.8 or later is required. +to the configure command. LLVM 7 is recommended. Note that LLVM 8 and +later are *not* supported at this time. NVC also depends GNU Flex to generate the lexical analyser. diff --git a/m4/ax_llvm_c.m4 b/m4/ax_llvm_c.m4 index 661f32162..721293440 100644 --- a/m4/ax_llvm_c.m4 +++ b/m4/ax_llvm_c.m4 @@ -100,6 +100,10 @@ AC_DEFUN([AX_LLVM_C], [ [LLVM intrinsics have alignment param]) fi + if test "$llvm_ver_num" -ge "80"; then + AC_MSG_WARN(LLVM 8 and later not yet supported) + fi + LLVM_OBJ_EXT="o" case $host_os in *cygwin*|msys*|mingw32*)