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

Accept extensions other than .cpp in nvq++ #2514

Merged
merged 7 commits into from
Feb 14, 2025
5 changes: 3 additions & 2 deletions tools/nvqpp/nvq++.in
Original file line number Diff line number Diff line change
@@ -587,7 +587,7 @@ while [ $# -ne 0 ]; do
*.o | *.so | *.bundle)
OBJS="${OBJS} $1"
;;
*.cpp | *.cc)
*.cpp | *.cc | *.cxx | *.c++)
SRCS="${SRCS} $1"
;;
*.a | *.dylib)
@@ -746,7 +746,8 @@ if ${SHOW_VERSION} && [ -z "$SRCS" ] && [ -z "$OBJS" ]; then
fi

for i in ${SRCS}; do
file=$(basename -s .cc -s .cpp $i)
file_with_suffix=$(basename $i)
file=${file_with_suffix%%.*}
bebora marked this conversation as resolved.
Show resolved Hide resolved

# If LIBRARY_MODE explicitly requested, then
# simply compile with the classical compiler.