From 973ae34948074b42f433049cfbed6d91a02afbde Mon Sep 17 00:00:00 2001 From: Yuka Takahashi Date: Mon, 24 Sep 2018 13:00:00 +0200 Subject: [PATCH] Revert "[cxxmodule] Fix nightlies (#2577)" This reverts commit 316f553538d2474c566e0b5460ce79d90e3028c0. --- include/cling/module.modulemap | 21 ++++++++++++++++----- include/cling/module.modulemap.build | 15 +++++++++++++++ 2 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 include/cling/module.modulemap.build diff --git a/include/cling/module.modulemap b/include/cling/module.modulemap index 07d17a7a..3851d261 100644 --- a/include/cling/module.modulemap +++ b/include/cling/module.modulemap @@ -1,14 +1,25 @@ +// Only included at runtime. +module Cling_Runtime { + module "RuntimeUniverse.h" { header "Interpreter/RuntimeUniverse.h" export * } + module "DynamicLookupRuntimeUniverse.h" { header "Interpreter/DynamicLookupRuntimeUniverse.h" export * } + module "RuntimePrintValue.h" { header "Interpreter/RuntimePrintValue.h" export * } + export * +} + +// Included in both compile time and runtime. +module Cling_Runtime_Extra { + module "DynamicExprInfo.h" { header "Interpreter/DynamicExprInfo.h" export * } + module "DynamicLookupLifetimeHandler.h" { header "Interpreter/DynamicLookupLifetimeHandler.h" export * } + module "Value.h" { header "Interpreter/Value.h" export * } + export * +} + module Cling_Interpreter { requires cplusplus umbrella "Interpreter" textual header "Interpreter/ClingOptions.inc" - // Only included at runtime. - exclude header "Interpreter/RuntimeUniverse.h" - exclude header "Interpreter/DynamicLookupRuntimeUniverse.h" - exclude header "Interpreter/RuntimePrintValue.h" - module * { export * } } diff --git a/include/cling/module.modulemap.build b/include/cling/module.modulemap.build new file mode 100644 index 00000000..44d88cb0 --- /dev/null +++ b/include/cling/module.modulemap.build @@ -0,0 +1,15 @@ +// Only included at runtime. +module Cling_Runtime { + module "RuntimeUniverse.h" { header "Interpreter/RuntimeUniverse.h" export * } + module "DynamicLookupRuntimeUniverse.h" { header "Interpreter/DynamicLookupRuntimeUniverse.h" export * } + module "RuntimePrintValue.h" { header "Interpreter/RuntimePrintValue.h" export * } + export * +} + +// Included in both compile time and runtime. +module Cling_Runtime_Extra { + module "DynamicExprInfo.h" { header "Interpreter/DynamicExprInfo.h" export * } + module "DynamicLookupLifetimeHandler.h" { header "Interpreter/DynamicLookupLifetimeHandler.h" export * } + module "Value.h" { header "Interpreter/Value.h" export * } + export * +}