aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2019-09-08 15:47:09 +0800
committerSean Cross <sean@xobs.io>2019-09-08 15:47:09 +0800
commitc1b628508d54eb0ab6e5c9559063330a409d0a51 (patch)
treef88d4db8022f71010c28f2fe1799507adf765198 /backends
parentfda94311ee6e3ec8de0e85e91251a2744673abaf (diff)
downloadyosys-c1b628508d54eb0ab6e5c9559063330a409d0a51.tar.gz
yosys-c1b628508d54eb0ab6e5c9559063330a409d0a51.tar.bz2
yosys-c1b628508d54eb0ab6e5c9559063330a409d0a51.zip
backends: smt2: use $(CXX) variable for compiler
The Makefile assumes the compiler is called `gcc`, which isn't always true. In fact, if we're building on msys2 or msys2-64, the compiler is called `i686-w64-mingw32-g++` or `x86_64-w64-mingw32-g++`. Use the variable instead of hardcoding the name, to fix building on these systems. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'backends')
-rw-r--r--backends/smt2/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/smt2/Makefile.inc b/backends/smt2/Makefile.inc
index 92941d4cf..68394a909 100644
--- a/backends/smt2/Makefile.inc
+++ b/backends/smt2/Makefile.inc
@@ -16,7 +16,7 @@ yosys-smtbmc-script.py: backends/smt2/smtbmc.py
-e "s|#!/usr/bin/env python3|#!$(PYTHON)|" < $< > $@
yosys-smtbmc.exe: misc/launcher.c yosys-smtbmc-script.py
- $(P) gcc -DGUI=0 -O -s -o $@ $<
+ $(P) $(CXX) -DGUI=0 -O -s -o $@ $<
# Other targets
else
TARGETS += yosys-smtbmc