From 56c7c1bcc8f127a3828dee37b78887f0df27b530 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 28 Oct 2010 09:51:36 -0400 Subject: [PATCH] Add warning when directory contains spaces, msg378 --- Changes | 2 ++ include/verilated.mk.in | 7 +++++++ src/Makefile.in | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/Changes b/Changes index f446dd50a..e1b39c77a 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,8 @@ indicates the contributor was also the author of the fix; Thanks! * Verilator 3.80**** +**** Add warning when directory contains spaces, msg378. [Salman Sheikh] + **** Fix wrong filename on include file errors, bug289. [Brad Parker] **** Fix segfault on SystemVerilog "output wire foo=0", bug291. [Joshua Wise] diff --git a/include/verilated.mk.in b/include/verilated.mk.in index 1bd0f40be..1e11b49c1 100644 --- a/include/verilated.mk.in +++ b/include/verilated.mk.in @@ -19,6 +19,13 @@ RANLIB = ranlib SP_PREPROC = sp_preproc SP_INCLUDER = $(PERL) $(VERILATOR_ROOT)/bin/verilator_includer +###################################################################### +# Make checks + +ifneq ($(words $(CURDIR)),1) + $(error Unsupported: GNU Make cannot build in directories containing spaces, build elsewhere: '$(CURDIR)') +endif + ###################################################################### # C Preprocessor flags diff --git a/src/Makefile.in b/src/Makefile.in index e81432926..d50818009 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -46,6 +46,10 @@ export OBJCACHE_JOBS := -j $(shell objcache --jobs "$(OBJCACHE_HOSTS)") endif endif +ifneq ($(words $(CURDIR)),1) + $(error Unsupported: GNU Make cannot build in directories containing spaces, build elsewhere: '$(CURDIR)') +endif + UNDER_GIT = $(wildcard ../.git/logs/HEAD) #*********************************************************************