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
1 change: 0 additions & 1 deletion scripts/mrbind/common_compiler_parser_flags.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-std=c++23
-Wno-nonportable-include-path
-Wno-enum-constexpr-conversion
-Wno-deprecated-enum-enum-conversion
-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH
4 changes: 4 additions & 0 deletions scripts/mrbind/generate.mk
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,10 @@ COMPILER_FLAGS := $(ABI_COMPAT_FLAG) $(EXTRA_CFLAGS) $(call load_file,$(makefile
# Add `-frelaxed-template-template-args` if Clang is old enough to support it. Newer versions have this behavior by default.
# Clang 18 and older need this flag. Clang 19 and 20 do the right thing by default, but still allow the flag with a deprecation warning. Clang 21 and newer consider this an unknown flag and error.
COMPILER_FLAGS += $(shell $(CXX_FOR_BINDINGS) --help | grep -o -- -frelaxed-template-template-args)
# `-Wno-enum-constexpr-conversion` is only needed by the older Clang versions (18, 19); pass it only there.
ifneq ($(filter 18 19,$(call safe_shell,$(CXX_FOR_BINDINGS) -dumpversion | cut -d. -f1)),)
COMPILER_FLAGS += -Wno-enum-constexpr-conversion
endif
ifneq ($(DEPS_INCLUDE_DIR),)
# Required for vcpkg environments
COMPILER_FLAGS += -I$(DEPS_INCLUDE_DIR)/eigen3
Expand Down
Loading