build_environment.py: clean LUA_PATH and LUA_CPATH (#42101)

For better build isolation
This commit is contained in:
Matthieu Dorier 2024-01-17 13:00:07 -06:00 committed by GitHub
parent 0eaab09e88
commit e92716ff2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,6 +217,9 @@ def clean_environment():
env.unset("R_HOME")
env.unset("R_ENVIRON")
env.unset("LUA_PATH")
env.unset("LUA_CPATH")
# Affects GNU make, can e.g. indirectly inhibit enabling parallel build
# env.unset('MAKEFLAGS')