From c08b2da1db9c08e128b661be58e81251b7df3d6b Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Tue, 27 Apr 2021 18:48:56 +0200 Subject: [PATCH] [core] Deprecate !(ACLiC.LinkLibs & 1). Remove ancient macOS case. --- core/base/src/TSystem.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/base/src/TSystem.cxx b/core/base/src/TSystem.cxx index 817608fd174d35..efcbf6759768ac 100644 --- a/core/base/src/TSystem.cxx +++ b/core/base/src/TSystem.cxx @@ -3317,15 +3317,17 @@ int TSystem::CompileMacro(const char *filename, Option_t *opt, #endif Bool_t linkDepLibraries = !produceRootmap; if (gEnv) { -#if (defined(R__MACOSX) && !defined(MAC_OS_X_VERSION_10_5)) - Int_t linkLibs = gEnv->GetValue("ACLiC.LinkLibs",2); -#elif defined(R__WIN32) +#if defined(R__WIN32) Int_t linkLibs = gEnv->GetValue("ACLiC.LinkLibs",3); #else Int_t linkLibs = gEnv->GetValue("ACLiC.LinkLibs",1); #endif produceRootmap = linkLibs & 0x2; linkDepLibraries = linkLibs & 0x1; + if (!linkDepLibraries) { + static int onetime = (Warning("ACLiC", "Unsetting `ACLiC.LinkLibs & 1` is deprecated!"), 1); + (void)onetime; + } } // FIXME: Triggers clang false positive warning -Wunused-lambda-capture.