From c38635bc2e0bb60314215742453839f91c94af0e Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 5 Aug 2022 14:48:06 -0400 Subject: [PATCH] See issue #76: Removed C++11 code until compiler options are supported --- examples/cc/app/src/main.cpp | 4 ++-- pants-plugins/experimental/cc/BUILD | 4 ---- pants-plugins/experimental/cc/goals/BUILD | 8 -------- .../experimental/cc/goals/__init__.py | 0 pants-plugins/experimental/cc/goals/check.py | 9 --------- pants-plugins/experimental/cc/register.py | 20 ------------------- .../experimental/cc/subsystems/BUILD | 4 ---- .../experimental/cc/subsystems/__init__.py | 0 .../experimental/cc/subsystems/toolchain.py | 9 --------- .../experimental/cc/util_rules/BUILD | 4 ---- .../experimental/cc/util_rules/__init__.py | 0 .../experimental/cc/util_rules/compile.py | 9 --------- 12 files changed, 2 insertions(+), 69 deletions(-) delete mode 100644 pants-plugins/experimental/cc/BUILD delete mode 100644 pants-plugins/experimental/cc/goals/BUILD delete mode 100644 pants-plugins/experimental/cc/goals/__init__.py delete mode 100644 pants-plugins/experimental/cc/goals/check.py delete mode 100644 pants-plugins/experimental/cc/register.py delete mode 100644 pants-plugins/experimental/cc/subsystems/BUILD delete mode 100644 pants-plugins/experimental/cc/subsystems/__init__.py delete mode 100644 pants-plugins/experimental/cc/subsystems/toolchain.py delete mode 100644 pants-plugins/experimental/cc/util_rules/BUILD delete mode 100644 pants-plugins/experimental/cc/util_rules/__init__.py delete mode 100644 pants-plugins/experimental/cc/util_rules/compile.py diff --git a/examples/cc/app/src/main.cpp b/examples/cc/app/src/main.cpp index d6a5792..1e27baa 100644 --- a/examples/cc/app/src/main.cpp +++ b/examples/cc/app/src/main.cpp @@ -5,8 +5,8 @@ int main() { - auto result = add(1, 2); - const auto greet(); + int result = add(1, 2); + greet(); std::cout << "Hello, C++ world! " << result << std::endl; return 0; } diff --git a/pants-plugins/experimental/cc/BUILD b/pants-plugins/experimental/cc/BUILD deleted file mode 100644 index 95c6150..0000000 --- a/pants-plugins/experimental/cc/BUILD +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). -# Licensed under the Apache License, Version 2.0 (see LICENSE). - -python_sources() diff --git a/pants-plugins/experimental/cc/goals/BUILD b/pants-plugins/experimental/cc/goals/BUILD deleted file mode 100644 index bb3a189..0000000 --- a/pants-plugins/experimental/cc/goals/BUILD +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). -# Licensed under the Apache License, Version 2.0 (see LICENSE). - -python_sources() - -python_tests( -name="tests", -) diff --git a/pants-plugins/experimental/cc/goals/__init__.py b/pants-plugins/experimental/cc/goals/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/pants-plugins/experimental/cc/goals/check.py b/pants-plugins/experimental/cc/goals/check.py deleted file mode 100644 index 9205377..0000000 --- a/pants-plugins/experimental/cc/goals/check.py +++ /dev/null @@ -1,9 +0,0 @@ -from __future__ import annotations - -from typing import Iterable - -from pants.engine.rules import Rule, UnionRule, collect_rules - - -def rules() -> Iterable[Rule | UnionRule]: - return collect_rules() diff --git a/pants-plugins/experimental/cc/register.py b/pants-plugins/experimental/cc/register.py deleted file mode 100644 index ebcc95b..0000000 --- a/pants-plugins/experimental/cc/register.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). -# Licensed under the Apache License, Version 2.0 (see LICENSE). - -from __future__ import annotations - -from typing import Iterable - -from experimental.cc.goals import check -from experimental.cc.subsystems import toolchain -from experimental.cc.util_rules import compile -from pants.engine.rules import Rule -from pants.engine.unions import UnionRule - - -def rules() -> Iterable[Rule | UnionRule]: - return ( - *check.rules(), - *compile.rules(), - *toolchain.rules(), - ) diff --git a/pants-plugins/experimental/cc/subsystems/BUILD b/pants-plugins/experimental/cc/subsystems/BUILD deleted file mode 100644 index 95c6150..0000000 --- a/pants-plugins/experimental/cc/subsystems/BUILD +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). -# Licensed under the Apache License, Version 2.0 (see LICENSE). - -python_sources() diff --git a/pants-plugins/experimental/cc/subsystems/__init__.py b/pants-plugins/experimental/cc/subsystems/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/pants-plugins/experimental/cc/subsystems/toolchain.py b/pants-plugins/experimental/cc/subsystems/toolchain.py deleted file mode 100644 index 9205377..0000000 --- a/pants-plugins/experimental/cc/subsystems/toolchain.py +++ /dev/null @@ -1,9 +0,0 @@ -from __future__ import annotations - -from typing import Iterable - -from pants.engine.rules import Rule, UnionRule, collect_rules - - -def rules() -> Iterable[Rule | UnionRule]: - return collect_rules() diff --git a/pants-plugins/experimental/cc/util_rules/BUILD b/pants-plugins/experimental/cc/util_rules/BUILD deleted file mode 100644 index 95c6150..0000000 --- a/pants-plugins/experimental/cc/util_rules/BUILD +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). -# Licensed under the Apache License, Version 2.0 (see LICENSE). - -python_sources() diff --git a/pants-plugins/experimental/cc/util_rules/__init__.py b/pants-plugins/experimental/cc/util_rules/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/pants-plugins/experimental/cc/util_rules/compile.py b/pants-plugins/experimental/cc/util_rules/compile.py deleted file mode 100644 index 9205377..0000000 --- a/pants-plugins/experimental/cc/util_rules/compile.py +++ /dev/null @@ -1,9 +0,0 @@ -from __future__ import annotations - -from typing import Iterable - -from pants.engine.rules import Rule, UnionRule, collect_rules - - -def rules() -> Iterable[Rule | UnionRule]: - return collect_rules()