Forum > Options

A different Build Mode Options Issue...

(1/2) > >>

ASBzone:
Happy New Year, everyone...

I extensively use Build Options in FPC/Lazarus, and recently, I added a fifth entry to my Build Options:

1. Windows x86 Debugging
2. Windows x64 Debugging
3. Windows x86 Release
4. Windows x64 Release
5. Raspberry Pi (Linux on ARM)

I tried exporting my build modes (ALL), and it said "5 modes exported".   Good.

But the XML clearly says "3 modes"    I tested this from multiple machines using the config mentioned in my signature.

Is anyone able to replicate this?  If so, I will open a ticket.

Thanks!

OwlOfTime:
It happened to me as well once. Newest added build modes was displayed on my machine but not in others machines...

ASBzone:
Thanks, @lainz


That's how I first noticed it.


It wasn't in the LPI file, even though that's where it is supposed to be stored.  And a full export turned out to be less than full.

ASBzone:
So, I just noticed what the deal is here.

Some build modes get stored in the .LPS file, even though I am not deliberately storing them there.

Then, when I select "Export Build Modes" it does not take the ones from the .LPS file, but only the ones from the .LPI file.

I'm running the FPC 3.2.1 fixes and Lazarus 2.11 fixes.

lucamar:

--- Quote from: ASBzone on January 27, 2021, 02:26:16 am ---So, I just noticed what the deal is here.

Some build modes get stored in the .LPS file, even though I am not deliberately storing them there.

Then, when I select "Export Build Modes" it does not take the ones from the .LPS file, but only the ones from the .LPI file.
--- End quote ---

IIRC, the Project Session file only stores which is the active mode; the information about all modes in a project should be in the Project Information file so it's logical to take only that. If you really have build mode info other than the active one name in the .LPS then it's a bug, I think.

I just tested (2.0.10/3.2.0) adding another three modes (beyond Default, Debug & Release) to a project and exporting them and it exported all six when selecting "Export all modes". And, of course, added them to the .LPI

There should be no difference in Fixes.

Navigation

[0] Message Index

[#] Next page

Go to full version