forked from qt-creator/qt-creator
Build in release mode on GitHub
Add option to build scripts to override build type, so it can be
freely chosen.
Build in release mode on GitHub - RelWithDebInfo was too big.
Amends b1640074e3
Change-Id: Ibba6e60d4e9b2eee24e789bfd28bddffb1e782f6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Cristian Adam
parent
49230c2122
commit
093d5f5ab1
@@ -54,7 +54,8 @@ def get_arguments():
|
||||
parser.add_argument('--build', help='path that should be used for building', required=True)
|
||||
parser.add_argument('--qt-path', help='Path to Qt', required=True)
|
||||
|
||||
parser.add_argument('--debug', help='Enable debug builds', action='store_true', default=False)
|
||||
parser.add_argument('--build-type', help='Build type to pass to CMake (defaults to RelWithDebInfo)',
|
||||
default='RelWithDebInfo')
|
||||
|
||||
# clang codemodel
|
||||
parser.add_argument('--llvm-path', help='Path to LLVM installation for Clang code model',
|
||||
@@ -113,13 +114,12 @@ def build_qtcreator(args, paths):
|
||||
if paths.elfutils:
|
||||
prefix_paths += [paths.elfutils]
|
||||
prefix_paths = [common.to_posix_path(fp) for fp in prefix_paths]
|
||||
build_type = 'Debug' if args.debug else 'RelWithDebInfo'
|
||||
with_docs_str = 'OFF' if args.no_docs else 'ON'
|
||||
build_date_option = 'OFF' if args.no_build_date else 'ON'
|
||||
test_option = 'ON' if args.with_tests else 'OFF'
|
||||
cmake_args = ['cmake',
|
||||
'-DCMAKE_PREFIX_PATH=' + ';'.join(prefix_paths),
|
||||
'-DCMAKE_BUILD_TYPE=' + build_type,
|
||||
'-DCMAKE_BUILD_TYPE=' + args.build_type,
|
||||
'-DSHOW_BUILD_DATE=' + build_date_option,
|
||||
'-DWITH_DOCS=' + with_docs_str,
|
||||
'-DBUILD_DEVELOPER_DOCS=' + with_docs_str,
|
||||
|
Reference in New Issue
Block a user