Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Issue 526813002: Do not expect a copysign function to be defined in <cmath> with clang-cl (Closed)

Created:
6 years, 3 months ago by ehsan
Modified:
6 years, 3 months ago
Reviewers:
bungeman-skia, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Do not expect a copysign function to be defined in <cmath> with clang-cl clang-cl defines __cplusplus to 201103L, but it uses the runtime library provided by MSVC, so the copysign function will not be available there. BUG=skia: Committed: https://skia.googlesource.com/skia/+/c34b0d4e9ad5806c1f882a1f85191f2ea8ddcdba

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M include/core/SkFloatingPoint.h View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 12 (2 generated)
reed1
lgtm
6 years, 3 months ago (2014-09-12 19:16:03 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/526813002/1
6 years, 3 months ago (2014-09-12 19:16:54 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1) as c34b0d4e9ad5806c1f882a1f85191f2ea8ddcdba
6 years, 3 months ago (2014-09-12 19:30:38 UTC) #5
bungeman-skia
On 2014/09/12 19:30:38, I haz the power (commit-bot) wrote: > Committed patchset #1 (id:1) as ...
6 years, 3 months ago (2014-09-12 20:15:26 UTC) #6
bungeman-skia
On 2014/09/12 20:15:26, bungeman1 wrote: > On 2014/09/12 19:30:38, I haz the power (commit-bot) wrote: ...
6 years, 3 months ago (2014-09-12 20:19:18 UTC) #7
bungeman-skia
https://codereview.chromium.org/526813002/diff/1/include/core/SkFloatingPoint.h File include/core/SkFloatingPoint.h (right): https://codereview.chromium.org/526813002/diff/1/include/core/SkFloatingPoint.h#newcode34 include/core/SkFloatingPoint.h:34: #if (!defined(_MSC_VER) && __cplusplus >= 201103L) || (defined(_MSC_VER) && ...
6 years, 3 months ago (2014-09-12 20:54:52 UTC) #8
ehsan
On 2014/09/12 20:54:52, bungeman1 wrote: > https://codereview.chromium.org/526813002/diff/1/include/core/SkFloatingPoint.h > File include/core/SkFloatingPoint.h (right): > > https://codereview.chromium.org/526813002/diff/1/include/core/SkFloatingPoint.h#newcode34 > ...
6 years, 3 months ago (2014-09-12 21:22:13 UTC) #9
bungeman-skia
On 2014/09/12 21:22:13, ehsan wrote: > On 2014/09/12 20:54:52, bungeman1 wrote: > > > https://codereview.chromium.org/526813002/diff/1/include/core/SkFloatingPoint.h ...
6 years, 3 months ago (2014-09-12 21:49:25 UTC) #10
ehsan
On 2014/09/12 21:49:25, bungeman1 wrote: > I think it's ok to leave this as-is over ...
6 years, 3 months ago (2014-09-15 14:59:01 UTC) #11
bungeman-skia
6 years, 3 months ago (2014-09-17 18:50:40 UTC) #12
Message was sent while issue was closed.
On 2014/09/15 14:59:01, ehsan wrote:
> On 2014/09/12 21:49:25, bungeman1 wrote:
> > I think it's ok to leave this as-is over the weekend. I'm not sure where or
> > exactly what to name the 'SK_BUILD_CLANG_CL' macro at the moment. I also
> > remember that when all of this code here landed there was a general
discussion
> > of how we should be testing for c++11 features, an I'd like to make sure
that
> we
> > do something sane about that. I'll take a better look at this soon, and I'll
> > probably end up putting together a CL. My initial reaction was mostly a
result
> > of not knowing how this change would affect Chromium when we roll.
> 
> Sounds good!  Please let me know if there is anything else for me to do. 
> Thanks!

This has been cleared up enough for the time being with
https://codereview.chromium.org/576023003/ .

Powered by Google App Engine
This is Rietveld 408576698