diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-11-11 19:06:12 -0600 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2016-11-11 17:06:12 -0800 |
commit | 3a7393db14e1d5daf7ba4b019e1234d35dab9a10 (patch) | |
tree | 480095d479db5b9ff1785a1063154c1d2828531c /Makefile.in | |
parent | bf8d2b71bb76b03b9a4db36fe6928c29a41a43e7 (diff) | |
download | spike-3a7393db14e1d5daf7ba4b019e1234d35dab9a10.zip spike-3a7393db14e1d5daf7ba4b019e1234d35dab9a10.tar.gz spike-3a7393db14e1d5daf7ba4b019e1234d35dab9a10.tar.bz2 |
Ensure that g++ knows it is building a PCH (#75)
It seems that g++ 5.4 doesn't realize that it is building a precompiled
header unless you pass it -x c++-header.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index cdceb82..e8c80dd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -194,7 +194,7 @@ $(2)_deps := $$(patsubst %.o, %.d, $$($(2)_objs)) $(2)_deps += $$(patsubst %.o, %.d, $$($(2)_c_objs)) $(2)_deps += $$(patsubst %.h, %.h.d, $$($(2)_precompiled_hdrs)) $$($(2)_pch) : %.h.gch : %.h - $(COMPILE) $$< -o $$@ + $(COMPILE) -x c++-header $$< -o $$@ # If using clang, don't depend (and thus don't build) precompiled headers $$($(2)_objs) : %.o : %.cc $$($(2)_gen_hdrs) $(if $(filter-out clang,$(CC)),$$($(2)_pch)) $(COMPILE) -c $$< |