summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/Makefile
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2008-04-21 00:10:39 -0400
committerZack Rusin <[email protected]>2008-04-21 00:26:18 -0400
commit201ac414d4df00745e487a6ffbc9979a2e70f0c6 (patch)
tree3713e1c2c0389a0cf55ece047f55a2333b7036c0 /src/gallium/auxiliary/gallivm/Makefile
parent40e0439db448a7d93ddb18faac7f14b47b1343c0 (diff)
make llvm draw paths compile with the latest changes
switch the method of distribution of builtins (to get rid of the llvm2cpp dependency)
Diffstat (limited to 'src/gallium/auxiliary/gallivm/Makefile')
-rw-r--r--src/gallium/auxiliary/gallivm/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/Makefile b/src/gallium/auxiliary/gallivm/Makefile
index c24e19e062d..6bfd187fb31 100644
--- a/src/gallium/auxiliary/gallivm/Makefile
+++ b/src/gallium/auxiliary/gallivm/Makefile
@@ -65,10 +65,14 @@ depend: $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) $(INC_SOURCES)
gallivm_builtins.cpp: llvm_builtins.c
- clang --emit-llvm < $< |llvm-as|opt -std-compile-opts|llvm2cpp -gen-contents -o=$@ -f -for=shader -funcname=createGallivmBuiltins
+ clang --emit-llvm < $< |llvm-as|opt -std-compile-opts > temp.bin
+ (echo "static const unsigned char llvm_builtins_data[] = {"; od -txC temp.bin | sed -e "s/^[0-9]*//" -e s"/ \([0-9a-f][0-9a-f]\)/0x\1,/g" -e"\$$d" | sed -e"\$$s/,$$/};/") >$@
+ rm temp.bin
gallivmsoabuiltins.cpp: soabuiltins.c
- clang --emit-llvm < $< |llvm-as|opt -std-compile-opts|llvm2cpp -gen-module -o=$@ -f -for=shader -funcname=createSoaBuiltins
+ clang --emit-llvm < $< |llvm-as|opt -std-compile-opts > temp.bin
+ (echo "static const unsigned char soabuiltins_data[] = {"; od -txC temp.bin | sed -e "s/^[0-9]*//" -e s"/ \([0-9a-f][0-9a-f]\)/0x\1,/g" -e"\$$d" | sed -e"\$$s/,$$/};/") >$@
+ rm temp.bin
# Emacs tags
tags: