Compiler Flags in SUBDIR
Solved
General and Desktop
-
TEMPLATE = subdirs SUBDIRS = \ app1 \ app2\ app3\ app4\ # where to find the sub projects - give the folders app1 = src/app1 app2.subdir = src/app2 app3.subdir = src/app3 app4.subdir = src/app4 # Build optimization PRECOMPILED_HEADER = $$PWD/client/app/src/pch.h CONFIG += precompile_header QMAKE_CXXFLAGS += -MP -O2
Do these optimizations have any effect on this level or do I need to specifiy them for each app.pro?
-
@jsulm Thanks!
In MakeFile we see -O2 -MDCXXFLAGS = -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -permissive- -Zc:__cplusplus -Zc:externConstexpr -O2 -MD -std:c++17 -utf-8 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc $(DEFINES)
-
@Redman said in Compiler Flags in SUBDIR:
Do these optimizations have any effect on this level or do I need to specifiy them for each app.pro?
You can simply build the whole thing and check what parameters were passed to the compiler.
-
@jsulm Thanks!
In MakeFile we see -O2 -MDCXXFLAGS = -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -permissive- -Zc:__cplusplus -Zc:externConstexpr -O2 -MD -std:c++17 -utf-8 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc $(DEFINES)
-