diff --git a/bioconda_utils/lint/check_build_help.py b/bioconda_utils/lint/check_build_help.py index c1d8c1b208..73b0f40e10 100644 --- a/bioconda_utils/lint/check_build_help.py +++ b/bioconda_utils/lint/check_build_help.py @@ -134,7 +134,7 @@ class cython_needs_compiler(LintCheck): """ severity = WARNING def check_deps(self, deps): - if 'cython' in deps and 'compiler_c' not in deps: + if 'cython' in deps and 'compiler_c' not in deps and 'compiler_cxx' not in deps: self.message() diff --git a/test/lint_cases.yaml b/test/lint_cases.yaml index 6848a223fa..f5341d23cc 100644 --- a/test/lint_cases.yaml +++ b/test/lint_cases.yaml @@ -403,6 +403,10 @@ tests: add: requirements: { host: [cython], build: ['{{compiler("c")}}'] } build: { noarch: False } + - name: cython_cxx_compiler_ok + add: + requirements: { host: [cython], build: ['{{compiler("cxx")}}'] } + build: { noarch: False } - name: missing_run_exports remove: build/run_exports expect: missing_run_exports