blob: 9c787855f9188c27bf2072a84c32cb5616a5cf44 [file] [log] [blame]
Reid Spencer7315c8d2004-11-03 16:14:40 +00001Directory structure
2===================
3Although I have made every effort not to use absolute paths, I have only tested building
4with my own directory structure and it looks like this:
5
6c:\project\llvm ; Main project directory
7c:\project\llvm\win32 ; win32 project
8c:\project\llvm\win32\tools ; flex, bison and sed live here
9c:\project\llvm\win32\share ; flex, bison and sed support files
10
11Requirements
12============
13
14You need flex, sed and bison - I'm using the GnuWin32 versions of these tools which can be obtained from
15
16http://gnuwin32.sourceforge.net/
17
18Limitations
19============
20
21At the moment only the core LLVM libraries and the tablegen executable are built. If anyone has time to
22port the rest of the LLVM tools it would be great...
23
24Other notes
25===========
26
27When linking with your own application it is of the utmost importance that you use the same runtime
28libraries in compiling LLVM as in your own project. Otherwise you will get a lot of errors. To change this,
29just mark all the projects except the Config project (since it doesn't use the C compiler) in the
30solution explorer, select properties - then go to the C/C++ options and the Code Generation sub option page.
31In the Runtime Library (6th from the top) select the appropriate version. Then change the active
32configuration to Release (in the top left corner of the properties window) and select the appropriate
33runtime library for the release version.
34
35When linking with your applications, you need to force a symbol reference to bring in the x86 backend.
36Open the properties for your main project and select the Linker options - under the Input options there
37is a Force Symbol References field where you need to enter _X86TargetMachineModule. If anyone has a better
38suggestion for how to trick the linker into always pulling in these objects, I'd be grateful...
39
40Contact Information
41===================
42
43please contact me at this address if you have any questions:
44
45morten@hue.no
46
47
48-- Morten Ofstad 2.11.2004