From 218f1a6eada8c1ca77eee06021e616f6c63839b2 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 22 Aug 2024 12:49:14 +0200 Subject: [PATCH] Add support for vendor specific extensions in project.json and manifest.json. --- src/build/libraries.c | 2 ++ src/build/project.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/build/libraries.c b/src/build/libraries.c index 271e33ca6..26a6af912 100644 --- a/src/build/libraries.c +++ b/src/build/libraries.c @@ -12,6 +12,7 @@ const char *manifest_default_keys[][2] = { {"exec", "Scripts run for all platforms."}, {"provides", "The library name"}, {"targets", "The map of supported platforms"}, + {"vendor", "Vendor specific extensions, ignored by c3c."}, {"wincrt", "Windows CRT linking: none, static, dynamic."} }; @@ -29,6 +30,7 @@ const char *manifest_target_keys[][2] = { {"exec", "Scripts to also run for the target."}, {"linked-libraries", "Libraries linked by the linker for this target, overriding global settings."}, {"link-args", "Linker arguments for this target."}, + {"vendor", "Vendor specific extensions, ignored by c3c."}, {"wincrt", "Windows CRT linking: none, static, dynamic."} }; diff --git a/src/build/project.c b/src/build/project.c index c186a9502..dc02dcdbf 100644 --- a/src/build/project.c +++ b/src/build/project.c @@ -51,6 +51,7 @@ const char *project_default_keys[][2] = { {"trap-on-wrap", "Make signed and unsigned integer overflow generate a panic rather than wrapping."}, {"use-stdlib", "Include the standard library (default: true)."}, {"version", "Version using semantic versioning."}, + {"vendor", "Vendor specific extensions, ignored by c3c."}, {"warnings", "Warnings used for all targets."}, {"wincrt", "Windows CRT linking: none, static, dynamic (default)."}, {"windef", "Windows def file, used as an alternative to dllexport when exporting a DLL."}, @@ -120,6 +121,7 @@ const char* project_target_keys[][2] = { {"trap-on-wrap", "Make signed and unsigned integer overflow generate a panic rather than wrapping."}, {"type", "Type of output, one of 'executable', 'static-lib', 'dynamic-lib', 'benchmark', 'test', 'object-files'." }, {"use-stdlib", "Include the standard library (default: true)."}, + {"vendor", "Vendor specific extensions, ignored by c3c."}, {"version", "Version using semantic versioning."}, {"warnings", "Warnings used for all targets."}, {"wincrt", "Windows CRT linking: none, static, dynamic (default)."},