Skip to content

Commit ec6fef1

Browse files
committed
test release mode
1 parent 858cdc9 commit ec6fef1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,28 @@ def get_cmake_args():
112112

113113
if (os.getenv('DEBUG', '0') in ('1', 'ON')):
114114
cfg = 'Debug'
115+
elif (os.getenv('RELEASE', '0') in ('1', 'ON')):
116+
cfg = 'Release'
115117
elif (os.getenv('RELWITHDEBINFO', '0') in ('1', 'ON')):
116118
cfg = 'RelWithDebInfo'
117119
elif (os.getenv('MINSIZEREL', '0') in ('1', 'ON')):
118120
cfg = 'MinSizeRel'
119121
else:
120122
cfg = None
123+
121124
build_options = []
122125
if cfg:
123126
build_options.extend(['--build-type', cfg])
124127
if sys.platform == 'win32':
125128
build_options.extend(['-G', 'Ninja', '--skip-generator-test'])
126129
sys.argv[2:2] = build_options
130+
print("=================[start]===========")
131+
print("=================[]===========")
132+
print("=================[]===========")
133+
print(sys.argv)
134+
print("=================[]===========")
135+
print(build_options)
136+
print("=================[end]===========")
127137

128138
cmake_args += [
129139
f'-DTI_VERSION_MAJOR={TI_VERSION_MAJOR}',

0 commit comments

Comments
 (0)