summaryrefslogtreecommitdiff
path: root/py/objfun.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-11-22 14:15:49 +1100
committerJim Mussared <jim.mussared@gmail.com>2022-11-22 14:36:21 +1100
commit6873a14b6149616ba3c78ce03fb94c9a34983d19 (patch)
treedbeea452c20d3d01bae682a9a3aeadbb3d19e5fd /py/objfun.c
parentac5934c96b66555ba8fe43465b34cb2b2a692ff0 (diff)
py/makeversionhdr.py: Allow running outside of repo.
If a CMake-build is run with `make BUILD=/outside/path` then makeversionheader.py is run with the CWD set to the build directory, which means the git version lookup will fail and silently fall back to the mpconfig.h mode (giving the wrong result). This commit: - Uses the location of makeversionheader.py to find the repo path. - Allows overriding this path via --repo-path. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py/objfun.c')
0 files changed, 0 insertions, 0 deletions