aboutsummaryrefslogtreecommitdiffstats
path: root/win32/README.txt
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-03 16:14:40 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-03 16:14:40 +0000
commit7315c8db395d5874040de0b956e7f5bfcf176f52 (patch)
treeab0775aac83fd60b68b309be1c1171f1d6da19f1 /win32/README.txt
parent085ea4d39a51f707981a52fcf08c3994349effd5 (diff)
downloadexternal_llvm-7315c8db395d5874040de0b956e7f5bfcf176f52.zip
external_llvm-7315c8db395d5874040de0b956e7f5bfcf176f52.tar.gz
external_llvm-7315c8db395d5874040de0b956e7f5bfcf176f52.tar.bz2
Top level files for building natively on win32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'win32/README.txt')
-rw-r--r--win32/README.txt48
1 files changed, 48 insertions, 0 deletions
diff --git a/win32/README.txt b/win32/README.txt
new file mode 100644
index 0000000..9c78785
--- /dev/null
+++ b/win32/README.txt
@@ -0,0 +1,48 @@
+Directory structure
+===================
+Although I have made every effort not to use absolute paths, I have only tested building
+with my own directory structure and it looks like this:
+
+c:\project\llvm ; Main project directory
+c:\project\llvm\win32 ; win32 project
+c:\project\llvm\win32\tools ; flex, bison and sed live here
+c:\project\llvm\win32\share ; flex, bison and sed support files
+
+Requirements
+============
+
+You need flex, sed and bison - I'm using the GnuWin32 versions of these tools which can be obtained from
+
+http://gnuwin32.sourceforge.net/
+
+Limitations
+============
+
+At the moment only the core LLVM libraries and the tablegen executable are built. If anyone has time to
+port the rest of the LLVM tools it would be great...
+
+Other notes
+===========
+
+When linking with your own application it is of the utmost importance that you use the same runtime
+libraries in compiling LLVM as in your own project. Otherwise you will get a lot of errors. To change this,
+just mark all the projects except the Config project (since it doesn't use the C compiler) in the
+solution explorer, select properties - then go to the C/C++ options and the Code Generation sub option page.
+In the Runtime Library (6th from the top) select the appropriate version. Then change the active
+configuration to Release (in the top left corner of the properties window) and select the appropriate
+runtime library for the release version.
+
+When linking with your applications, you need to force a symbol reference to bring in the x86 backend.
+Open the properties for your main project and select the Linker options - under the Input options there
+is a Force Symbol References field where you need to enter _X86TargetMachineModule. If anyone has a better
+suggestion for how to trick the linker into always pulling in these objects, I'd be grateful...
+
+Contact Information
+===================
+
+please contact me at this address if you have any questions:
+
+morten@hue.no
+
+
+-- Morten Ofstad 2.11.2004