From 7fbb66f5a73a6e3c33c128d02ef726423b5021fd Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 22 Oct 2021 15:06:57 -0700 Subject: [PATCH] ircd: Add missing conditions around clang/opencl tgts. --- ircd/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ircd/Makefile.am b/ircd/Makefile.am index d2ca160bc..3b8e43278 100644 --- a/ircd/Makefile.am +++ b/ircd/Makefile.am @@ -352,10 +352,14 @@ endif # # LLVM PGO text to binary for -fprofile-use +if CLANG default.profdata: -$(LLVM_PROFDATA) merge -output=default.profdata default.proftext +endif if CLANG +if OPENCL gpt_gpu.o: gpt_gpu.cl $(CC) -std=CL1.1 $(AM_CPPFLAGS) $(CPPFLAGS) $(DEFS) -Xclang -finclude-default-header -include "ircd/config.h" -o $@ -c $^ endif +endif