Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognize .cxx as a valid c++ source file extension #1113

Open
premsair opened this issue May 21, 2024 · 1 comment
Open

Recognize .cxx as a valid c++ source file extension #1113

premsair opened this issue May 21, 2024 · 1 comment

Comments

@premsair
Copy link

Current Behavior

Gradle core cpp-library, cpp-application and cpp-unit-test plugins does not recognize .cxx as a valid c++ file extension and does not compile the sources that end with .cxx when source property on component (library or application extensions) is configured since the source is further filtered for "**/*.cpp", "**/*.c++", "**/*.cc" files

GCC does recognize .cxx as a valid c++ file extension

The workaround is to configure the compileTask.source property directly but this is not desired since this takes away the abstraction provided by the component source property

Expected Behavior

in a given src directory (src/main/cpp) recognize .cxx files as c++ source and pass the source for compilation to compile task

Context (optional)

No response

Steps to Reproduce

setup a project with cpp source files that end with .cxx
<projectDir>/src/main/cpp/a.cxx

In build.gradle
plugins { id 'cpp-library' }

Gradle version

7.3.3

Build scan URL (optional)

No response

Your Environment (optional)

No response

@premsair premsair added the a:bug label May 21, 2024
@ljacomet ljacomet transferred this issue from gradle/gradle May 22, 2024
@ljacomet
Copy link
Member

Native support in Gradle is currently not an area of focus. There is no ETA on implementing this.

@hegyibalint hegyibalint changed the title recognize .cxx as a valid c++ source file extension Recognize .cxx as a valid c++ source file extension Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants