[cfe-dev] Clang OpenCL support

Sam Parker S.Parker3 at lboro.ac.uk
Wed Sep 25 05:14:58 PDT 2013


Hi,

What about if you also use '-Dcl_clang_storage_class_specifiers'?

Cheers,
Sam

Sam Parker
Research Student
Electronic Systems Design Group
School of Electronic and Systems Engineering
Loughborough University
UK

On 24/09/13 20:47, Xiuxia wrote:
> This is my makefile:
>
> CXX := clang++
> LLVMCOMPONENTS := cppbackend
> RTTIFLAG := -fno-rtti
> LLVMCONFIG := /home/xiuxia/work/codes/build/Debug+Asserts/bin/llvm-config
>
> CXXFLAGS := -I$(shell $(LLVMCONFIG) --src-root)/tools/clang/include
> -I$(shell $(LLVMCONFIG) --obj-root)/tools/clang/include $(shell
> $(LLVMCONFIG) --cxxflags) $(RTTIFLAG)
> LLVMLDFLAGS := $(shell $(LLVMCONFIG) --ldflags --libs $(LLVMCOMPONENTS))
>
> SOURCES = CI_opencl.cpp
>
> OBJECTS = $(SOURCES:.cpp=.o)
> EXES = $(OBJECTS:.o=)
> CLANGLIBS = \
>                  -lclangTooling\
>                  -lclangFrontendTool\
>                  -lclangFrontend\
>                  -lclangDriver\
>                  -lclangSerialization\
>                  -lclangCodeGen\
>                  -lclangParse\
>                  -lclangSema\
>                  -lclangStaticAnalyzerFrontend\
>                  -lclangStaticAnalyzerCheckers\
>                  -lclangStaticAnalyzerCore\
>                  -lclangAnalysis\
>                  -lclangARCMigrate\
>                  -lclangRewriteFrontend\
>                  -lclangRewriteCore\
>                  -lclangEdit\
>                  -lclangAST\
>                  -lclangLex\
>                  -lclangBasic\
>                  $(shell $(LLVMCONFIG) --libs)\
>                  -lcurses
>
> all: $(OBJECTS) $(EXES)
>
> %: %.o
>      $(CXX) -o $@ $< $(CLANGLIBS) $(LLVMLDFLAGS)
>
>
>
>
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/Clang-OpenCL-support-tp4034650p4034651.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list