Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if(BEMAN_USE_MODULES)
FILES
${CMAKE_CURRENT_BINARY_DIR}/beman/execution/modules_export.hpp
)
target_compile_definitions(beman_execution PUBLIC BEMAN_USE_MODULES)
# FIXME: target_compile_definitions(beman_execution PUBLIC BEMAN_HAS_MODULES)
endif()

if(BEMAN_USE_MODULES AND CMAKE_CXX_MODULE_STD)
Expand Down
4 changes: 2 additions & 2 deletions cmake/cxx-modules-rules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ endif()

option(
BEMAN_USE_STD_MODULE
"Check if 'import std;' is possible with the toolchain"
"Check if 'import std;' is possible with the toolchain?"
OFF
)
message(STATUS "BEMAN_USE_STD_MODULE=${BEMAN_USE_STD_MODULE}")
Expand All @@ -110,7 +110,7 @@ if(BEMAN_USE_STD_MODULE)
set(CMAKE_CXX_SCAN_FOR_MODULES ON)
option(
BEMAN_HAS_IMPORT_STD
"Build with import std; possible"
"Build with import std; is possible and used!"
${CMAKE_CXX_MODULE_STD}
)
message(STATUS "BEMAN_HAS_IMPORT_STD=${BEMAN_HAS_IMPORT_STD}")
Expand Down
3 changes: 2 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ set(EXAMPLES
)

if(BEMAN_USE_MODULES)
# FIXME: not yet! list(APPEND EXAMPLES modules) # modules.cpp
# FIXME: not yet!
list(APPEND EXAMPLES modules) # modules.cpp
endif()

foreach(EXAMPLE ${EXAMPLES})
Expand Down
13 changes: 0 additions & 13 deletions examples/modules.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// examples/modules.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef WIN32
#undef BEMAN_HAS_IMPORT_STD
#endif

#ifdef BEMAN_HAS_IMPORT_STD
import std;
#else
Expand All @@ -18,21 +14,12 @@ import std;

#endif

#if defined(__cpp_modules) && __cpp_modules < 201907L

#ifdef BEMAN_USE_MODULES
#warning "__cpp_modules seems not usable!"
import beman.execution;
#else
#include <beman/execution/execution.hpp>
#endif

#else

import beman.execution;

#endif

namespace ex = beman::execution;

int main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ foreach(test ${execution_tests})
add_test(NAME ${TEST_EXE} COMMAND $<TARGET_FILE:${TEST_EXE}>)
endforeach()

if(BEMAN_EXECUTION_ENABLE_INSTALL)
if(BEMAN_EXECUTION_ENABLE_INSTALL AND NOT CMAKE_SKIP_INSTALL_RULES)
# test if the targets are usable from the install directory
add_test(
NAME install-to-stagedir
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-affine-on.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tests/beman/execution/exec-affine-on.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/affine_on.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-associate.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tests/beman/execution/exec-associate.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/associate.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-awaitable.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-awaitable.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/await_suspend_result.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-bulk.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-bulk.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include "beman/execution/detail/get_completion_signatures.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-env.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tests/beman/execution/exec-env.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/env.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-fwd-env.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-fwd-env.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-general.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-general.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-get-compl-sched.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-get-compl-sched.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/get_completion_scheduler.hpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-get-delegation-scheduler.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/get_delegation_scheduler.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-get-domain.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-get-domain.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-get-env.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-get-env.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-get-scheduler.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-get-scheduler.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/get_scheduler.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-get-stop-token.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-get-stop-token.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-getcomplsigs.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-getcomplsigs.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-into-variant.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-into-variant.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/into_variant.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-let.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-let.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/let.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-opstate-start.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-opstate-start.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-opstate.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-opstate.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/operation_state.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-prop.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tests/beman/execution/exec-prop.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/prop.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-read-env.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-read-env.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/read_env.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-run-loop-general.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-run-loop-general.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/run_loop.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-run-loop-types.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-run-loop-types.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/run_loop.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-sched.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-sched.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/scheduler.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-schedule-from.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-schedule-from.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/schedule_from.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-schedule.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-schedule.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/schedule.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-scope-concepts.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tests/beman/execution/exec-scope-concepts.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/scope_token.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-scope-counting.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tests/beman/execution/exec-scope-counting.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/counting_scope.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-scope-simple-counting.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tests/beman/execution/exec-scope-simple-counting.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/simple_counting_scope.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-set-error.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-set-error.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-set-stopped.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-set-stopped.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-set-value.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-set-value.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-snd-apply.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-snd-apply.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/apply_sender.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-snd-transform.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-snd-transform.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/transform_sender.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-starts-on.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-starts-on.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/detail/starts_on.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/beman/execution/exec-sync-wait.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// src/beman/execution/tests/exec-sync-wait.test.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifdef BEMAN_USE_MODULE
#ifdef BEMAN_HAS_MODULES
import beman.execution;
#else
#include <beman/execution/execution.hpp>
Expand Down
Loading