mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
Moving to a ninja-based build system
This commit is contained in:
39
scripts/templates/target.host.ninja.j2
Normal file
39
scripts/templates/target.host.ninja.j2
Normal file
@@ -0,0 +1,39 @@
|
||||
{% extends "target.default.ninja.j2" %}
|
||||
{% block binaries %}
|
||||
cc = ${srcroot}/sysroot/bin/clang
|
||||
cxx = ${srcroot}/sysroot/bin/clang++
|
||||
ld = ${srcroot}/sysroot/bin/x86_64-elf-ld
|
||||
ar = ${srcroot}/sysroot/bin/x86_64-elf-ar
|
||||
nasm = ${srcroot}/sysroot/bin/nasm
|
||||
{% endblock %}
|
||||
|
||||
{% block variables %}
|
||||
|
||||
ccflags = $ccflags $
|
||||
-D__ELF__ $
|
||||
-nodefaultlibs $
|
||||
-nostdinc $
|
||||
-nostdlib $
|
||||
-ffreestanding $
|
||||
-mno-sse $
|
||||
-fno-omit-frame-pointer $
|
||||
-mno-red-zone $
|
||||
-mcmodel=large $
|
||||
-isystem${srcroot}/sysroot/include $
|
||||
--sysroot="${srcroot}/sysroot"
|
||||
|
||||
cxxflags = $cxxflags $
|
||||
-nostdlibinc $
|
||||
-isystem${srcroot}/sysroot/include/c++/v1 $
|
||||
-fno-exceptions $
|
||||
-fno-rtti
|
||||
|
||||
ldflags = $ldflags $
|
||||
-g $
|
||||
-nostdlib $
|
||||
-nostartfiles $
|
||||
-znocombreloc $
|
||||
-Bsymbolic $
|
||||
-nostartfiles
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user