mirror of
https://github.com/matrix-construct/construct
synced 2024-12-01 11:12:51 +01:00
ircd: Split compile and assembly of CL object through LLVM bc.
This commit is contained in:
parent
7fbb66f5a7
commit
c643cc7507
2 changed files with 6 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@ Makefile
|
|||
*.lo
|
||||
*.la
|
||||
*.bc
|
||||
*.ll
|
||||
*.orig
|
||||
*.log
|
||||
*.sw?
|
||||
|
|
|
@ -359,7 +359,10 @@ 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 $^
|
||||
gpt_gpu.ll: gpt_gpu.cl
|
||||
$(CC) -S -emit-llvm -std=CL1.1 $(AM_CPPFLAGS) $(CPPFLAGS) $(DEFS) -Xclang -finclude-default-header -include "ircd/config.h" -o $@ -c $^
|
||||
|
||||
gpt_gpu.o: gpt_gpu.ll
|
||||
$(CC) -std=CL1.1 -o $@ -c $^
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue