From 471886467ee05046e8bd9e3621878e06ca9cbd5f Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 19 Apr 2020 10:38:49 -0700 Subject: feat: added skeleton libc and updated generated makefiles to correctly set target specific flags --- compile_commands.json | 58 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 18 deletions(-) (limited to 'compile_commands.json') diff --git a/compile_commands.json b/compile_commands.json index a125285..31a2936 100644 --- a/compile_commands.json +++ b/compile_commands.json @@ -9,11 +9,11 @@ "-fms-extensions", "-Iinclude", "-o", - "build/bufio/bufio.o", - "src/bufio/bufio.c" + "build/libn/error.o", + "sys/libn/error.c" ], "directory": "/home/nolln/root", - "file": "src/bufio/bufio.c" + "file": "sys/libn/error.c" }, { "arguments": [ @@ -25,11 +25,11 @@ "-fms-extensions", "-Iinclude", "-o", - "build/error.o", - "src/error.c" + "build/libn/coro.o", + "sys/libn/coro.c" ], "directory": "/home/nolln/root", - "file": "src/error.c" + "file": "sys/libn/coro.c" }, { "arguments": [ @@ -39,13 +39,16 @@ "-fno-strict-aliasing", "-fwrapv", "-fms-extensions", + "-ffreestanding", + "-fno-builtin", + "-nostdlib", "-Iinclude", "-o", - "build/string.o", - "src/string.c" + "build/libc/stdio.o", + "sys/libc/stdio.c" ], "directory": "/home/nolln/root", - "file": "src/string.c" + "file": "sys/libc/stdio.c" }, { "arguments": [ @@ -57,11 +60,11 @@ "-fms-extensions", "-Iinclude", "-o", - "build/memory.o", - "src/memory.c" + "build/libn/string.o", + "sys/libn/string.c" ], "directory": "/home/nolln/root", - "file": "src/memory.c" + "file": "sys/libn/string.c" }, { "arguments": [ @@ -73,11 +76,11 @@ "-fms-extensions", "-Iinclude", "-o", - "build/test.o", - "src/test.c" + "build/libn/memory.o", + "sys/libn/memory.c" ], "directory": "/home/nolln/root", - "file": "src/test.c" + "file": "sys/libn/memory.c" }, { "arguments": [ @@ -89,10 +92,29 @@ "-fms-extensions", "-Iinclude", "-o", - "build/coro.o", - "src/coro.c" + "build/libn/test.o", + "sys/libn/test.c" ], "directory": "/home/nolln/root", - "file": "src/coro.c" + "file": "sys/libn/test.c" + }, + { + "arguments": [ + "clang", + "-c", + "-g", + "-fno-strict-aliasing", + "-fwrapv", + "-fms-extensions", + "-ffreestanding", + "-fno-builtin", + "-nostdlib", + "-Iinclude", + "-o", + "build/libc/string.o", + "sys/libc/string.c" + ], + "directory": "/home/nolln/root", + "file": "sys/libc/string.c" } ] \ No newline at end of file -- cgit v1.2.1