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

´Use g++ and clang++ instead of gcc and clang as C++ compilers #4234

Merged
merged 7 commits into from
Feb 26, 2024
9 changes: 4 additions & 5 deletions misc/yosys-config.in
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ help() {
echo "Replacement args:"
echo " --cxx @CXX@"
echo " --cxxflags $( echo '@CXXFLAGS@' | fmt -w60 | sed ':a;N;$!ba;s/\n/ \\\n /g' )"
echo " --ldflags @LDFLAGS@"
echo " --ldlibs @LDLIBS@"
echo " --ldflags @LINKFLAGS@"
echo " --ldlibs @LIBS@"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should rename them here as well, while providing compatibility:

Suggested change
echo " --ldflags @LINKFLAGS@"
echo " --ldlibs @LIBS@"
echo " --linkflags @LINKFLAGS@"
echo " --ldflags (alias of --linkflags)
echo " --linklibs @LIBS@"
echo " --ldlibs (alias of --linklibs)

echo " --bindir @BINDIR@"
echo " --datdir @DATDIR@"
echo ""
Expand Down Expand Up @@ -64,9 +64,9 @@ for opt; do
"$prefix"cxxflags)
tokens=( "${tokens[@]}" @CXXFLAGS@ ) ;;
"$prefix"ldflags)
tokens=( "${tokens[@]}" @LDFLAGS@ ) ;;
tokens=( "${tokens[@]}" @LINKFLAGS@ ) ;;
"$prefix"ldlibs)
tokens=( "${tokens[@]}" @LDLIBS@ ) ;;
tokens=( "${tokens[@]}" @LIBS@ ) ;;
"$prefix"bindir)
tokens=( "${tokens[@]}" '@BINDIR@' ) ;;
"$prefix"datdir)
Expand Down Expand Up @@ -104,4 +104,3 @@ fi

echo "${tokens[@]}"
exit 0