parent
0e469426dd
commit
695aa0b8c2
7 changed files with 28 additions and 7 deletions
@ -0,0 +1,13 @@ |
||||
# This is a setup for compiling a program that runs natively |
||||
# but uses a custom std lib. This test will only work on |
||||
# x86_64. |
||||
|
||||
[target_machine] |
||||
system = 'linux' |
||||
cpu_family = 'x86_64' |
||||
cpu = 'x86_64' |
||||
endian = 'little' |
||||
|
||||
[properties] |
||||
|
||||
c_stdlib = ['mylibc', 'mylibc_dep'] # Subproject name, dependency name |
@ -0,0 +1,12 @@ |
||||
project('own libc', 'c') |
||||
|
||||
# A very simple libc implementation |
||||
|
||||
# Start with manual flags to compile, then add platform support. |
||||
|
||||
libc = static_library('c', 'libc.c', 'stubstart.s', |
||||
) |
||||
|
||||
mylibc_dep = declare_dependency(link_with : libc, |
||||
include_directories : include_directories('.') |
||||
) |
Loading…
Reference in new issue