diff options
| author | Eike Ziller <eike.ziller@qt.io> | 2020-12-22 11:20:43 +0100 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2020-12-22 13:02:03 +0000 |
| commit | 0f9a206bd55935d1c33260ad820a9599c3317490 (patch) | |
| tree | 23c598d3a7c19266ad6f6f0b2a59ceb78b1be04f /scripts/build_plugin.py | |
| parent | 03274561e963969a9b0f6d98b294c9b0b6d07b6e (diff) | |
cmake build: Make separate debug info optional
In the CMake build in general, but still use it for
RelWithDebInfo builds with the build*.py scripts.
Fixes: QTCREATORBUG-25151
Change-Id: I8414f953278ebb395f73414c12af0ed7bd4fcdbe
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'scripts/build_plugin.py')
| -rwxr-xr-x | scripts/build_plugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build_plugin.py b/scripts/build_plugin.py index c1b12a97f9e..8ec5eb44641 100755 --- a/scripts/build_plugin.py +++ b/scripts/build_plugin.py @@ -70,9 +70,11 @@ def build(args, paths): os.makedirs(paths.result) prefix_paths = [os.path.abspath(fp) for fp in args.prefix_paths] + [paths.qt_creator, paths.qt] prefix_paths = [common.to_posix_path(fp) for fp in prefix_paths] + separate_debug_info_option = 'ON' if args.with_debug_info else 'OFF' cmake_args = ['cmake', '-DCMAKE_PREFIX_PATH=' + ';'.join(prefix_paths), '-DCMAKE_BUILD_TYPE=' + args.build_type, + '-DQTC_SEPARATE_DEBUG_INFO=' + separate_debug_info_option, '-DCMAKE_INSTALL_PREFIX=' + common.to_posix_path(paths.install), '-G', 'Ninja'] |
