Skip to content

dustdfg/godot-devkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godot-devkit

Godot-devkit is a project to build LLVM sharpened for speed building Godot. Main aim is to make a drop-in clang distribution for building Godot. Which means if devkit distribution fails compiling godot with certain configuration, system distribution should fail with the same configuration too, otherwise it should be considered a bug.

Status

Builds with (Full LTO + PGO) currently it gives 30% speed boost. "production ready" but in "testing phase"

Building

Run build.sh. The produced devkit will be named godot-devkit.tar.xz

Usage

  1. Install all dependencies necessary for building godot

  2. Unpack devkit to any place

  3. Export path to devkit

export PATH=/path/to/devkit/bin:$PATH
scons -j16 use_llvm="yes" lld="yes" use_static_cpp="no"

Some systems doens't provide static versions of libc, libstdc++ and libatomic so use_static_cpp should be used on those systems. It should also make linkage a bit faster

  1. For other build-time options please see Compiling for Linux

TODO:

  • Add BOLT
  • Try to do CSIR instrumentation instead of usual IR
  • Check if CSIR instrumentation was used correctly (IR+CSIR)
  • Change string printed by clang --version to godot-devkit or something similar
    • CLANG_VENDOR, CLANG_REPOSITORY_STRING allow to change string only partially :/
  • Add clean target which preserves stage1 or something which allows to do quick developing without lots of rebuilds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published