fix race in ANGLE build
The flex and bison rules generated the same files for debug and release. This conflicts in parallel builds, e.g. when using jom. Task-number: QTBUG-49003 Change-Id: I6f64760d83292e8bfad6fd0b4f8fbdd386e2213b Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
2f7d3cf559
commit
691671893a
@ -41,15 +41,15 @@ SOURCES += \
|
||||
$$ANGLE_DIR/src/compiler/preprocessor/Token.cpp
|
||||
|
||||
# NOTE: 'flex' and 'bison' can be found in qt5/gnuwin32/bin
|
||||
flex.commands = $$addGnuPath(flex) --noline --nounistd --outfile=${QMAKE_FILE_BASE}.cpp ${QMAKE_FILE_NAME}
|
||||
flex.output = ${QMAKE_FILE_BASE}.cpp
|
||||
flex.commands = $$addGnuPath(flex) --noline --nounistd --outfile=${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
|
||||
flex.output = $${BUILDSUBDIR}${QMAKE_FILE_BASE}.cpp
|
||||
flex.input = FLEX_SOURCES
|
||||
flex.dependency_type = TYPE_C
|
||||
flex.variable_out = GENERATED_SOURCES
|
||||
QMAKE_EXTRA_COMPILERS += flex
|
||||
|
||||
bison.commands = $$addGnuPath(bison) --no-lines --skeleton=yacc.c --output=${QMAKE_FILE_BASE}.cpp ${QMAKE_FILE_NAME}
|
||||
bison.output = ${QMAKE_FILE_BASE}.cpp
|
||||
bison.commands = $$addGnuPath(bison) --no-lines --skeleton=yacc.c --output=${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
|
||||
bison.output = $${BUILDSUBDIR}${QMAKE_FILE_BASE}.cpp
|
||||
bison.input = BISON_SOURCES
|
||||
bison.dependency_type = TYPE_C
|
||||
bison.variable_out = GENERATED_SOURCES
|
||||
|
@ -163,16 +163,16 @@ SOURCES += \
|
||||
|
||||
|
||||
# NOTE: 'flex' and 'bison' can be found in qt5/gnuwin32/bin
|
||||
flex.commands = $$addGnuPath(flex) --noline --nounistd --outfile=${QMAKE_FILE_BASE}_lex.cpp ${QMAKE_FILE_NAME}
|
||||
flex.output = ${QMAKE_FILE_BASE}_lex.cpp
|
||||
flex.commands = $$addGnuPath(flex) --noline --nounistd --outfile=${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
|
||||
flex.output = $${BUILDSUBDIR}${QMAKE_FILE_BASE}_lex.cpp
|
||||
flex.input = FLEX_SOURCES
|
||||
flex.dependency_type = TYPE_C
|
||||
flex.variable_out = GENERATED_SOURCES
|
||||
QMAKE_EXTRA_COMPILERS += flex
|
||||
|
||||
bison.commands = $$addGnuPath(bison) --no-lines --skeleton=yacc.c --defines=${QMAKE_FILE_BASE}_tab.h \
|
||||
--output=${QMAKE_FILE_BASE}_tab.cpp ${QMAKE_FILE_NAME}
|
||||
bison.output = ${QMAKE_FILE_BASE}_tab.h
|
||||
bison.commands = $$addGnuPath(bison) --no-lines --skeleton=yacc.c --defines=${QMAKE_FILE_OUT} \
|
||||
--output=${QMAKE_FILE_OUT_BASE}.cpp ${QMAKE_FILE_NAME}
|
||||
bison.output = $${BUILDSUBDIR}${QMAKE_FILE_BASE}_tab.h
|
||||
bison.input = BISON_SOURCES
|
||||
bison.dependency_type = TYPE_C
|
||||
bison.variable_out = GENERATED_SOURCES
|
||||
@ -182,10 +182,10 @@ QMAKE_EXTRA_COMPILERS += bison
|
||||
# have one output file even if the command generates two.
|
||||
MAKEFILE_NOOP_COMMAND = @echo -n
|
||||
msvc: MAKEFILE_NOOP_COMMAND = @echo >NUL
|
||||
bison_impl.output = ${QMAKE_FILE_BASE}_tab.cpp
|
||||
bison_impl.output = $${BUILDSUBDIR}${QMAKE_FILE_BASE}_tab.cpp
|
||||
bison_impl.input = BISON_SOURCES
|
||||
bison_impl.commands = $$MAKEFILE_NOOP_COMMAND
|
||||
bison_impl.depends = ${QMAKE_FILE_BASE}_tab.h
|
||||
bison_impl.output = ${QMAKE_FILE_BASE}_tab.cpp
|
||||
bison_impl.depends = $${BUILDSUBDIR}${QMAKE_FILE_BASE}_tab.h
|
||||
bison_impl.output = $${BUILDSUBDIR}${QMAKE_FILE_BASE}_tab.cpp
|
||||
bison_impl.variable_out = GENERATED_SOURCES
|
||||
QMAKE_EXTRA_COMPILERS += bison_impl
|
||||
|
@ -53,6 +53,8 @@ CONFIG(debug, debug|release) {
|
||||
DEFINES += NDEBUG
|
||||
}
|
||||
|
||||
!isEmpty(BUILD_PASS): BUILDSUBDIR = $$lower($$BUILD_PASS)/
|
||||
|
||||
# c++11 is needed by MinGW to get support for unordered_map.
|
||||
CONFIG += stl exceptions c++11
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user