diff --git a/setup.py b/setup.py index 902a1e30e..a37835809 100644 --- a/setup.py +++ b/setup.py @@ -112,18 +112,28 @@ def get_cmake_args(): if (os.getenv('DEBUG', '0') in ('1', 'ON')): cfg = 'Debug' + elif (os.getenv('RELEASE', '0') in ('1', 'ON')): + cfg = 'Release' elif (os.getenv('RELWITHDEBINFO', '0') in ('1', 'ON')): cfg = 'RelWithDebInfo' elif (os.getenv('MINSIZEREL', '0') in ('1', 'ON')): cfg = 'MinSizeRel' else: cfg = None + build_options = [] if cfg: build_options.extend(['--build-type', cfg]) if sys.platform == 'win32': build_options.extend(['-G', 'Ninja', '--skip-generator-test']) sys.argv[2:2] = build_options + print("=================[start]===========") + print("=================[]===========") + print("=================[]===========") + print(sys.argv) + print("=================[]===========") + print(build_options) + print("=================[end]===========") cmake_args += [ f'-DTI_VERSION_MAJOR={TI_VERSION_MAJOR}',