[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: Review Request 114897: Make KDE_ENABLE_EXCEPTIONS a list
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2014-01-07 22:34:24
Message-ID: lahvd2$74e$1 () ger ! gmane ! org
[Download RAW message or body]

Alex Merry wrote:

> On 07/01/14 18:00, Stephen Kelly wrote:
>> Alex Merry wrote:
>> 
>>> Hrm.  After some investigation: I'm not entirely sure.  The simplest
>>> answer is "that's what qmake does"
>> 
>> Please tell me you noticed that I asked about -U, not -D ...
> 
> Yes.  qmake actually doesn't use -U directly; 

Right. So the -U, at least, is not "what qmake does".

> it simply sets
> -DQT_NO_EXCEPTIONS if you do CONFIG+=exceptions_off, and does not set it
> otherwise.  -U is something of a hack to override -DQT_NO_EXCEPTIONS
> that we set by default.

Indeed. I'm skeptical about setting -DQT_NO_EXCEPTIONS by default.

> 
> I'm not certain what the "right" thing to do here is.  Arguably, we
> should always set -DQT_NO_EXCEPTIONS (at least for frameworks) so that
> we can be sure they build when Qt has exceptions disabled.

Are you sure?

> Either way, I'm really not convinced qmake does the right thing, as I
> think QT_NO_EXCEPTIONS should really be defined if and only if the Qt
> library itself was compiled with exceptions disabled.

That information can be conveyed from the Qt CMake config files if needed, 
or an installed header file if that's how the Qt list wants to do it. No 
problem.

Thanks,

Steve.


_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic