From ecdcd8f959bdd4245c6e5b7ab43368337bbb2deb Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Fri, 15 Apr 2022 18:52:36 +0200 Subject: [PATCH] 0.1.1: Add -L and -l parameters, also incomplete support of .c3i files. --- src/build/build_options.c | 35 +++++++++++++++++++++++++++++++- src/build/build_options.h | 4 ++++ src/compiler/compiler.c | 21 ++++++++++--------- src/compiler/compiler.h | 3 ++- src/compiler/semantic_analyser.c | 2 +- src/utils/file_utils.c | 21 +++++++++++++------ src/utils/lib.h | 6 ++++-- src/utils/stringutils.c | 14 +++++++++++++ src/version.h | 2 +- 9 files changed, 86 insertions(+), 22 deletions(-) diff --git a/src/build/build_options.c b/src/build/build_options.c index c061755a2..9396e4d72 100644 --- a/src/build/build_options.c +++ b/src/build/build_options.c @@ -100,6 +100,8 @@ static void usage(void) OUTPUT(" -gline-tables-only - Only emit line tables for debugging."); OUTPUT(""); OUTPUT(""); + OUTPUT(" -l - Link with the library provided."); + OUTPUT(" -L - Append the directory to the linker search paths."); OUTPUT(" -z - Send the as a parameter to the linker."); OUTPUT(""); OUTPUT(" --reloc=