Skip to content

Commit

Permalink
doc/preprocess.sh: Migrate from "${CPP}" to "${CC} -E"
Browse files Browse the repository at this point in the history
In reaction to issues with CPP="x86_64-pc-linux-gnu-gcc -E"
in Gentoo at https://bugs.gentoo.org/931287 .

Related GNU make docs:
https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
  • Loading branch information
hartwork committed May 11, 2024
1 parent 85d599c commit 683bdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/preprocess.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env bash
# Run GCC preprocessor and delete empty lines
: ${CPP:=cpp}
"${CPP}" -DURI_DOXYGEN -DURI_NO_UNICODE -C -I ../include "$1" | sed -e '/^$/d' -e 's/COMMENT_HACK//g'
: ${CC:=cc}
"${CC}" -E -DURI_DOXYGEN -DURI_NO_UNICODE -C -I ../include "$1" | sed -e '/^$/d' -e 's/COMMENT_HACK//g'

0 comments on commit 683bdab

Please sign in to comment.