Fixed config file not being used.

This commit is contained in:
Patrick 2023-09-02 11:52:10 +02:00
parent 55f57d55e6
commit 3f4dbaf11e

View File

@ -172,6 +172,9 @@ default_CXX = {
'msvc': 'cl.exe'
}.get(compiler, None)
if not os.path.isabs(config_file):
config_file = os.path.join(Dir('#').abspath, config_file)
vars = Variables(config_file)
vars.Add('CC', 'The C Compiler', default_CC)
vars.Add('CXX', 'The C++ Compiler', default_CXX)