koreader / koreader-base

Base framework offering a Lua scriptable environment for creating document readers
http://koreader.rocks/
GNU Affero General Public License v3.0
131 stars 105 forks source link

make: rework support for using clang #1861

Closed benoit-pierre closed 1 month ago

benoit-pierre commented 1 month ago

Don't rely on CC/CXX: it make it seems like a specific version could be used (CC=clang-18 make), but the actual value is ignored and overridden with clang (same for CXX). And while make CC=clang-18 is honored, this result in ccache support being partially disabled.

Instead, use a custom dedicated variable: USE_CLANG.


This change is Reviewable