mirror of
https://github.com/matrix-construct/construct
synced 2024-11-28 17:52:54 +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
|
*.lo
|
||||||
*.la
|
*.la
|
||||||
*.bc
|
*.bc
|
||||||
|
*.ll
|
||||||
*.orig
|
*.orig
|
||||||
*.log
|
*.log
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
|
@ -359,7 +359,10 @@ endif
|
||||||
|
|
||||||
if CLANG
|
if CLANG
|
||||||
if OPENCL
|
if OPENCL
|
||||||
gpt_gpu.o: gpt_gpu.cl
|
gpt_gpu.ll: gpt_gpu.cl
|
||||||
$(CC) -std=CL1.1 $(AM_CPPFLAGS) $(CPPFLAGS) $(DEFS) -Xclang -finclude-default-header -include "ircd/config.h" -o $@ -c $^
|
$(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
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue