Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 581:8a8ee1f6b268

Show
Ignore:
Timestamp:
09/07/08 09:30:34 (4 months ago)
Author:
Christian Kamm <kamm incasoftware de>
branch:
default
Message:

Only link default native backend by default.
Use the new option --add-backend to link in additional targets.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • premake.lua

    r571 r581  
    55-- we always make vtables opaque, it simply kills performance... 
    66OPAQUE_VTBLS = 1 
     7 
     8-- enables additional backends 
     9addoption("add-backend", "Link in more than the native LLVM backend") 
     10EXTRA_BACKENDS="" 
     11if options["add-backend"] then 
     12    EXTRA_BACKENDS=options["add-backend"] 
     13end 
    714 
    815-- use of boehm gc 
     
    5663package.linkoptions = { 
    5764    -- long but it's faster than just 'all' 
    58     "`llvm-config --libs core asmparser bitreader bitwriter linker support target transformutils scalaropts ipo instrumentation x86 powerpc`", 
     65    "`llvm-config --libs backend asmparser bitreader bitwriter linker ipo instrumentation " .. EXTRA_BACKENDS .. "`", 
    5966    "`llvm-config --ldflags`", 
    6067} 
Copyright © 2008, LDC Development Team.