Displaying 5 results from an estimated 5 matches for "llvm_ldflags".
2009 Mar 09
0
[LLVMdev] Cross-Module Function Calls
...in, args, environ );
return rv;
}
////
#### Makefile
AS=/home/terrence/programming/OSS-rcs/llvm/Debug/bin/llvm-as
LD=/home/terrence/programming/OSS-rcs/llvm/Debug/bin/llvm-ld
CC=g++
LLVM_CONFIG=/home/terrence/programming/OSS-rcs/llvm/Debug/bin/llvm-config
LLVM_CXXFLAGS=`${LLVM_CONFIG} --cxxflags`
LLVM_LDFLAGS=`${LLVM_CONFIG} --ldflags`
LLVM_LIBS=`${LLVM_CONFIG} --libs`
lower:
${AS} -f -o=foo.bc foo.ll
${AS} -f -o=bar.bc bar.ll
link: lower
${LD} -native -o=linked foo.bc bar.bc
test: lower
${CC} -o test.o -c ${LLVM_CXXFLAGS} test.cpp
${CC} -o test test.o ${LLVM_LDFLAGS} ${LLVM_LIBS}
####
Example...
2019 Mar 26
2
ORC JIT fails with standard math librrary
...65 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190326/10780d64/attachment.h>
-------------- next part --------------
LLVM_CONFIG = /home/fwinter/toolchain/install/llvm-8.0-x86-debug/bin/llvm-config
LLVM_CXXFLAGS = $(shell $(LLVM_CONFIG) --cxxflags)
LLVM_LDFLAGS = $(shell $(LLVM_CONFIG) --ldflags)
LLVM_LIBS = $(shell $(LLVM_CONFIG) --libs)
all: test
test.o: test.cc KaleidoscopeJIT.h
g++ -c -o $@ $< $(LLVM_CXXFLAGS)
test: test.o
g++ -o $@ $< $(LLVM_LDFLAGS) $(LLVM_LIBS)
clean:
rm -f *.o
rm -f test
-------------- next part --------------
A...
2008 Feb 20
0
[LLVMdev] Problems building LLVM 2.2 for ARM
Try make VERBOSE=1 first. Perhaps it'll tell us something.
Evan
On Feb 19, 2008, at 4:19 PM, Tobias Oberstein wrote:
> Hello,
>
> I'd like to do some initial experiments with LLVM on embedded ARM
> (Nokia N800), but ran into a build issue. Could s.o. give me a tip?
>
> Thx alot,
> Tobias
>
> P.S.: just as sidenote, LLVM 2.2 builds cleanly on GCC 4.2.3 / Linux.
2008 Feb 20
2
[LLVMdev] Problems building LLVM 2.2 for ARM
Hello,
I'd like to do some initial experiments with LLVM on embedded ARM
(Nokia N800), but ran into a build issue. Could s.o. give me a tip?
Thx alot,
Tobias
P.S.: just as sidenote, LLVM 2.2 builds cleanly on GCC 4.2.3 / Linux.
===
I'm building on Ubuntu/Scratchbox/ARMEL using GCC 3.4.4 (CodeSourcery
ARM 2005q3-2) using
./configure --prefix=$HOME/local/llvm-2.2 --enable-jit
2016 Nov 07
2
[llvm] To link or not to link
..._map_components_to_libnames(LLVM_LIBRARIES_OC Analysis Core ExecutionEngine InstCombine Object RuntimeDyld ScalarOpts Support native)
include_directories(SYSTEM ${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
add_executable(mex mex.cpp)
target_link_libraries(mex ${LLVM_LIBRARIES_OC} ${LLVM_LDFLAGS})