Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve Windows (MSVC and mingw) build #6590
Original bug ID: 6590
FLEXDIR=$(shell $(FLEXLINK) -where)
to invoke flexlink to find where it is, but this command is ran very time when flexlink's directory is referred. We only need to invoke flexlink once and get its locate.
So we can change above command to (note the colon):
FLEXDIR:=$(shell $(FLEXLINK) -where)
Comment author: @damiendoligez
Unfortunately, the change breaks the testsuite. Investigation reveals that:
-Ox is equivalent to -Ob2 -Og -Oi -Ot -Oy
On our test machines, -Og -Gy breaks the tool-debugger tests, probably because of something related to dynamic linking.
I switched to -O2 -Gy- but only in trunk because this needs further testing. In the 4.02 branch I'm reverting to -Ox. (commits 15476 and 15477)