From deefa3d17b695ab8462fa40521690a312aae96cc Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Tue, 27 Feb 2024 21:53:01 +0100 Subject: [PATCH] Add --output-dir #1155 --- releasenotes.md | 1 + src/build/build.h | 1 + src/build/build_options.c | 8 ++++++++ src/build/builder.c | 1 + src/compiler/compiler.c | 28 +++++++++++++++++++++++++--- 5 files changed, 36 insertions(+), 3 deletions(-) diff --git a/releasenotes.md b/releasenotes.md index 31d5a4db0..c5a939610 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -11,6 +11,7 @@ - 'rgba' also available for swizzling. - The name "subarray" has been replaced by the more well known name "slice' across the codebase. - Improved alignment handling. +- Add `--output-dir` to command line. #1155 ### Fixes - Fixed issue in safe mode when converting enums. diff --git a/src/build/build.h b/src/build/build.h index 393e99754..6cba1c8b0 100644 --- a/src/build/build.h +++ b/src/build/build.h @@ -356,6 +356,7 @@ typedef struct BuildOptions_ const char *testfn; const char *cc; const char *build_dir; + const char *output_dir; const char *llvm_out; const char *asm_out; const char *obj_out; diff --git a/src/build/build_options.c b/src/build/build_options.c index 1cf807241..b14d342ff 100644 --- a/src/build/build_options.c +++ b/src/build/build_options.c @@ -99,6 +99,7 @@ static void usage(void) OUTPUT(" -D - Add feature flag ."); OUTPUT(" -U - Remove feature flag ."); OUTPUT(" --trust=