Permalink
Browse files

tools: Make sure to have __lemberg__ defined for llvm-gcc.

  • Loading branch information...
1 parent cb3a39a commit da2ee247e79fb7810d4789ab5a7e86251731b190 @jeuneS2 committed Mar 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/etc/Makefile.rules
@@ -8,7 +8,7 @@ LLVM_LD=llvm-ld -b $@ $^ \
-internalize-public-api-list=${LIBLLSYMS},main
%.bc : %.c
- llvm-gcc ${CFLAGS} --emit-llvm -c -I ${PREFIX}/include -o $@ $<
+ llvm-gcc -U__i386__ -D__lemberg__ ${CFLAGS} --emit-llvm -c -I ${PREFIX}/include -o $@ $<
%.opt.bc : %.linked.bc
opt -disable-simplify-libcalls ${OPTFLAGS} -o $@ $<

0 comments on commit da2ee24

Please sign in to comment.