summaryrefslogtreecommitdiffstats
path: root/waftools/inflector.py
Commit message (Collapse)AuthorAgeFilesLines
* build: lua version: sanitize id before storage (no-op)Avi Halachmi (:avih)2021-10-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | The lua version names which are autodetected/chosen (such as "51deb") are used for two things: - as key for storing the pkg-config compile/link flags. - as ID for config.h and elsewhere - they're sanitized to use "_". Due to some inconsistensies, if the sanitized ID is different than the original name, then the compile/link flags are stored with the original name as key, while the retrieval happens with the sanitized ID - and therefore fails to find the correct flags. The solution is to use the original name only for display purpose at the output of configure, while using the sanitized version for everything else, so that storage and retrieval use the same key. Currently there's no issue and the patch has no effect, because the sanitizer considers all the current names as valid IDs. However, the next commit will add names which the sanitizer modifies, such as "lua-5.1", so this commit makes such names work too.
* build: remove useless classStefano Pigozzi2015-07-261-0/+22