summaryrefslogtreecommitdiff
path: root/amd64.ini
diff options
context:
space:
mode:
Diffstat (limited to 'amd64.ini')
-rw-r--r--amd64.ini36
1 files changed, 36 insertions, 0 deletions
diff --git a/amd64.ini b/amd64.ini
new file mode 100644
index 0000000..378579c
--- /dev/null
+++ b/amd64.ini
@@ -0,0 +1,36 @@
+[constants]
+arch = 'x86_64-pc-freebsd-elf'
+common_flags = [
+ '--target=' + arch,
+ '-Wall',
+ '-Wno-incompatible-library-redeclaration',
+ '-Wno-builtin-requires-header',
+ '-mno-red-zone',
+ '-mno-sse',
+ '-mno-mmx',
+ '-I./',
+ '-nostdlib',
+ '-nostdinc'
+ ]
+
+[binaries]
+c = 'clang'
+c_ld = 'lld'
+strip = 'llvm-strip'
+
+[built-in options]
+c_args = common_flags + [ '-std=c11' ]
+c_link_args = [
+ '--target=' + arch,
+ '-L./',
+ '-nostdlib',
+ '-static',
+ '-Wl,-nostdlib',
+ '-Wl,--gc-sections']
+
+[host_machine]
+system = 'none'
+cpu_family = 'x86_64'
+cpu = 'x86_64'
+endian = 'little'
+strip = true