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

Docs: detect version of clang++ #848

Closed
wants to merge 1 commit into from
Closed
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
16 changes: 15 additions & 1 deletion doc/build_antora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# Official repository: https://github.com/boostorg/url
#

set -e

# If CXX was not already set, then determine the newest clang.
if [ ! -n "$CXX" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

The workflow already sets CXX and CC. Is this change to ensure it works in the container that builds the preview?

for i in $(seq 40 -1 18); do
if [ -f /usr/bin/clang++-${i} ]; then
export CXX="/usr/bin/clang++-$i"
export CC="/usr/bin/clang-$i"
break
fi
done
fi

set -x

if [ $# -eq 0 ]
then
echo "No playbook supplied, using default playbook"
Expand All @@ -24,4 +39,3 @@ PATH="$(pwd)/node_modules/.bin:${PATH}"
export PATH
npx antora --clean --fetch "$PLAYBOOK"
echo "Done"

Loading