Home » U++ TheIDE » U++ TheIDE: Packages » Add/Remove flags disfunction [BUG?]
Re: Add/Remove flags disfunction [BUG?] [message #42499 is a reply to message #42497] |
Thu, 20 March 2014 00:46 |
omari
Messages: 266 Registered: March 2010
|
Experienced Member |
|
|
Hi,
there is a set of flags added in "ide/Core/Host.cpp"
this flags is defined at theide compile time, regardless of the current configuration.
void LocalHost::AddFlags(Index<String>& cfg)
{
#if defined(PLATFORM_WIN32)
cfg.Add("WIN32");
#endif
#ifdef PLATFORM_LINUX
cfg.Add("LINUX");
#endif
#ifdef PLATFORM_POSIX
cfg.Add("POSIX");
#endif
...
if theide is compiled under Linux, then the flags LINUX and POSIX are always defined, even with a build method that define WIN32 only (for example).
this methode is called in "ide/Builders/Build.cpp",
Index<String> MakeBuild::PackageConfig(const Workspace& wspc, int package,
const VectorMap<String, String>& bm, String mainparam,
Host& host, Builder& b, String *target)
{
...
host.AddFlags(cfg);
b.AddFlags(cfg);
...
Hope it helps!
best regards
omari.
regards
omari.
|
|
|
|
|
Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: mirek on Mon, 28 May 2012 18:36
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Wed, 19 March 2014 20:24
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: omari on Thu, 20 March 2014 00:46
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 09:52
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 18:00
|
|
|
Re: Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 18:19
|
|
|
Re: Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 20:32
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 21:26
|
|
|
Re: Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 21:33
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 21:36
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: piotr5 on Mon, 14 April 2014 10:37
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: mirek on Sat, 27 September 2014 18:11
|
Goto Forum:
Current Time: Sun Jun 02 00:59:32 CEST 2024
Total time taken to generate the page: 0.01319 seconds
|