[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 56930208 13/13: Simplify
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 56930208 13/13: Simplify |
Date: |
Tue, 7 Jun 2022 16:39:10 -0400 (EDT) |
branch: master
commit 569302088cc982a4829eae9116ec4326bcb62a54
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Simplify
Because $(build_type) is asserted to be a single word, simpler
comparisons suffice.
---
objects.make | 2 +-
workhorse.make | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/objects.make b/objects.make
index 9af29c4e..b3053632 100644
--- a/objects.make
+++ b/objects.make
@@ -356,7 +356,7 @@ endif
excluded_unit_test_targets :=
-ifeq (ubsan,$(findstring ubsan,$(build_type)))
+ifeq (ubsan,$(build_type))
excluded_unit_test_targets += loads_test mortality_rates_test
endif
diff --git a/workhorse.make b/workhorse.make
index 60103e42..61f6c361 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -83,7 +83,7 @@ ifneq (1,$(words $(build_type)))
$(error There must be exactly one build_type, not "$(build_type)")
endif
-ifeq (so_test,$(findstring so_test,$(build_type)))
+ifeq (so_test,$(build_type))
USE_SO_ATTRIBUTES=1
endif
@@ -95,7 +95,7 @@ excluded_default_targets :=
# 'antediluvian' targets are incompatible with UBSan.
-ifeq (ubsan,$(findstring ubsan,$(build_type)))
+ifeq (ubsan,$(build_type))
excluded_default_targets += \
antediluvian_cgi$(EXEEXT) \
antediluvian_cli$(EXEEXT) \
@@ -132,7 +132,7 @@ endif
# For targets that depend on wx, build type 'safestdlib' requires a
# compatible wx build, which is not yet available.
-ifeq (safestdlib,$(findstring safestdlib,$(build_type)))
+ifeq (safestdlib,$(build_type))
excluded_default_targets += \
lmi_wx_shared$(EXEEXT) \
skeleton$(SHREXT) \
@@ -676,7 +676,7 @@ $(cgicc_objects): gcc_common_extra_warnings += \
-Wno-conversion \
-Wno-zero-as-null-pointer-constant \
-ifeq (safestdlib,$(findstring safestdlib,$(build_type)))
+ifeq (safestdlib,$(build_type))
ifeq (3.4.5,$(gcc_version))
expression_template_0_test.o: gcc_common_extra_warnings +=
-Wno-unused-parameter
endif
@@ -749,12 +749,12 @@ test_targets := unit_tests cgi_tests cli_tests
# See:
# https://lists.gnu.org/archive/html/lmi/2016-06/msg00091.html
-ifeq (gprof,$(findstring gprof,$(build_type)))
+ifeq (gprof,$(build_type))
optimization_flag := -O0 -fno-omit-frame-pointer
analyzer_flag := -pg
-else ifeq (ubsan,$(findstring ubsan,$(build_type)))
+else ifeq (ubsan,$(build_type))
analyzer_flag := $(ubsan_options)
-else ifeq (safestdlib,$(findstring safestdlib,$(build_type)))
+else ifeq (safestdlib,$(build_type))
optimization_flag := -O0 -fno-omit-frame-pointer
libstdcxx_warning_macros := $(every_libstdcxx_warning_macro)
else
- [lmi-commits] [lmi] master updated (b3f9681c -> 56930208), Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 56930208 13/13: Simplify,
Greg Chicares <=
- [lmi-commits] [lmi] master b8afd2d8 05/13: Disentangle conditionals for one target, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 10dfe448 03/13: Prepare to refactor, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master cb7f345f 11/13: Assert that there is OAOO $(build_type), Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master a9468c0f 02/13: Remove an obsolete defect marker [272], Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 7a434503 06/13: Don't attempt to build "erroneous" targets, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master a2d6b2ac 12/13: Migrate one last conditional, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 3b1b8a3d 10/13: Migrate another conditional, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master 58f81cc4 07/13: For $(build_type) 'so_test', always set $(USE_SO_ATTRIBUTES), Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master eb5f30b7 09/13: Disentangle another conditional, Greg Chicares, 2022/06/07
- [lmi-commits] [lmi] master fbcd6ee8 04/13: Don't use UBSan with antediluvian targets, Greg Chicares, 2022/06/07