1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-21 15:27:00 +00:00
mpv/waftools
Avi Halachmi (:avih) 7c5cd5ef10 build: lua version: sanitize id before storage (no-op)
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.
2021-10-03 19:48:29 +03:00
..
checks build: lua version: sanitize id before storage (no-op) 2021-10-03 19:48:29 +03:00
detections build: fix macOS arm builds 2020-11-22 13:44:16 +02:00
fragments build: require at least GL 2.0 headers for GLX 2019-11-30 17:37:56 +01:00
generators file2string: remove question mark from safe chars 2020-11-22 17:16:57 +01:00
__init__.py
clang_compilation_database.py *.py: cosmetic changes 2020-02-27 21:36:21 +01:00
dependencies.py build: sort dependencies (to make build deterministic) 2020-09-18 02:02:49 +00:00
deps_parser.py build: remove some dead code 2017-09-19 18:37:11 +02:00
features.py waftools/features: add forgotten enable variants for enabled features 2021-09-20 00:43:12 +02:00
inflector.py build: lua version: sanitize id before storage (no-op) 2021-10-03 19:48:29 +03:00
syms.py build: fix build for waf 2.0 2017-09-22 09:14:37 +02:00
waf_customizations.py build: fix linking libmpv when swift features are build 2018-07-08 14:39:04 +03:00