From a8c3d92d69e1771dbc8949890098edd54b057aaa Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Wed, 18 Oct 2023 18:10:17 -0400 Subject: [PATCH] Fix missing Runtime files --- configure.py | 8 ++++---- src/Runtime.PPCEABI.H/NMWException.cp | 1 + src/Runtime.PPCEABI.H/__mem.c | 0 src/Runtime.PPCEABI.H/ptmf.c | 1 + src/Runtime.PPCEABI.H/runtime.c | 1 + tools/project.py | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 src/Runtime.PPCEABI.H/NMWException.cp create mode 100644 src/Runtime.PPCEABI.H/__mem.c create mode 100644 src/Runtime.PPCEABI.H/ptmf.c create mode 100644 src/Runtime.PPCEABI.H/runtime.c diff --git a/configure.py b/configure.py index 9ee6cd358..e00799a89 100644 --- a/configure.py +++ b/configure.py @@ -1065,13 +1065,13 @@ config.libs = [ "cflags": cflags_runtime, "host": False, "objects": [ - Object(Matching, "Runtime.PPCEABI.H/__mem.c"), + Object(NonMatching, "Runtime.PPCEABI.H/__mem.c"), Object(Matching, "Runtime.PPCEABI.H/__va_arg.c"), Object(Matching, "Runtime.PPCEABI.H/global_destructor_chain.c"), Object(Matching, "Runtime.PPCEABI.H/CPlusLibPPC.cp"), - Object(Matching, "Runtime.PPCEABI.H/NMWException.cp"), - Object(Matching, "Runtime.PPCEABI.H/ptmf.c"), - Object(Matching, "Runtime.PPCEABI.H/runtime.c"), + Object(NonMatching, "Runtime.PPCEABI.H/NMWException.cp"), + Object(NonMatching, "Runtime.PPCEABI.H/ptmf.c"), + Object(NonMatching, "Runtime.PPCEABI.H/runtime.c"), Object(Matching, "Runtime.PPCEABI.H/__init_cpp_exceptions.cpp"), Object(Matching, "Runtime.PPCEABI.H/Gecko_ExceptionPPC.cp"), Object(Matching, "Runtime.PPCEABI.H/GCN_mem_alloc.c"), diff --git a/src/Runtime.PPCEABI.H/NMWException.cp b/src/Runtime.PPCEABI.H/NMWException.cp new file mode 100644 index 000000000..58f0f7ad3 --- /dev/null +++ b/src/Runtime.PPCEABI.H/NMWException.cp @@ -0,0 +1 @@ +#include "Runtime.PPCEABI.H/NMWException.h" diff --git a/src/Runtime.PPCEABI.H/__mem.c b/src/Runtime.PPCEABI.H/__mem.c new file mode 100644 index 000000000..e69de29bb diff --git a/src/Runtime.PPCEABI.H/ptmf.c b/src/Runtime.PPCEABI.H/ptmf.c new file mode 100644 index 000000000..9721d88d3 --- /dev/null +++ b/src/Runtime.PPCEABI.H/ptmf.c @@ -0,0 +1 @@ +#include "Runtime.PPCEABI.H/ptmf.h" diff --git a/src/Runtime.PPCEABI.H/runtime.c b/src/Runtime.PPCEABI.H/runtime.c new file mode 100644 index 000000000..be7f22376 --- /dev/null +++ b/src/Runtime.PPCEABI.H/runtime.c @@ -0,0 +1 @@ +#include "Runtime.PPCEABI.H/runtime.h" diff --git a/tools/project.py b/tools/project.py index 5a6fc1305..8d9b7f313 100644 --- a/tools/project.py +++ b/tools/project.py @@ -517,7 +517,7 @@ def generate_build_ninja(config, build_config): unit_src_path = config.src_dir / options["source"] if not unit_src_path.exists(): - if config.warn_missing_source: + if config.warn_missing_source or completed: print(f"Missing source file {unit_src_path}") link_step.add(obj_path) return