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

Issue 198643004: Fixed cross compilation with mingw. (Closed)

Created:
6 years, 9 months ago by cjacek
Modified:
6 years, 9 months ago
Reviewers:
bungeman-skia, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Fixed cross compilation with mingw. Tested in Mozilla source tree. I tried to use skia build system, but it's up to the task for cross compilation. SkHRESULT.cpp - Use proper file name (that matters on case sensitive OSes) SkAtomics_win.h - Don't use pragma intrinsic on GCC (this causes massive warnings) SkOSFile_win.cpp - This one is tricky. GCC doesn't allow (void*) casts in template argument constants and INVALID_HANDLE_VALUE looks like this: ((HANDLE)(LONG_PTR)-1) where HANDLE is typedefed to void*. Changed the code to use LONG_PTR as template argument and cast it when needed. BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=13862

Patch Set 1 #

Total comments: 3

Patch Set 2 : try2: Use SkAtomics_sync.h on mingw #

Total comments: 2

Patch Set 3 : Fixed version #

Patch Set 4 : Patchset with AUTHORS change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -11 lines) Patch
M AUTHORS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkPostConfig.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkOSFile_win.cpp View 1 2 1 chunk +7 lines, -9 lines 0 comments Download
M src/utils/win/SkHRESULT.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
cjacek
6 years, 9 months ago (2014-03-14 13:29:17 UTC) #1
bungeman-skia
https://codereview.chromium.org/198643004/diff/1/src/ports/SkAtomics_win.h File src/ports/SkAtomics_win.h (right): https://codereview.chromium.org/198643004/diff/1/src/ports/SkAtomics_win.h#newcode16 src/ports/SkAtomics_win.h:16: #ifdef _MSC_VER Why are you using this file at ...
6 years, 9 months ago (2014-03-14 14:50:37 UTC) #2
cjacek
Thank you for review. The new set uses SkAtomics_sync.h on mingw. BTW, mingw uses always_inline ...
6 years, 9 months ago (2014-03-14 15:59:17 UTC) #3
bungeman-skia
https://codereview.chromium.org/198643004/diff/20001/include/core/SkPostConfig.h File include/core/SkPostConfig.h (right): https://codereview.chromium.org/198643004/diff/20001/include/core/SkPostConfig.h#newcode377 include/core/SkPostConfig.h:377: # if defined(_MSC_VER) Mike will probably want to consider ...
6 years, 9 months ago (2014-03-14 17:50:18 UTC) #4
cjacek
Thank you for review. I uploaded a new version containing your new version of SkAutoNullKernelHandle/SkAutoWinMMap.
6 years, 9 months ago (2014-03-18 15:37:21 UTC) #5
bungeman-skia
lgtm, but I think you'll need reed to give his lgtm for the PostConfig.h change.
6 years, 9 months ago (2014-03-18 16:14:30 UTC) #6
reed1
lgtm
6 years, 9 months ago (2014-03-18 17:08:15 UTC) #7
bungeman-skia
The CQ bit was checked by bungeman@google.com
6 years, 9 months ago (2014-03-19 17:47:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cjacek@gmail.com/198643004/30001
6 years, 9 months ago (2014-03-19 17:47:47 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 17:47:50 UTC) #10
commit-bot: I haz the power
Presubmit check for 198643004-30001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-19 17:47:51 UTC) #11
bungeman-skia
On 2014/03/19 17:47:51, I haz the power (commit-bot) wrote: > Presubmit check for 198643004-30001 failed ...
6 years, 9 months ago (2014-03-19 17:54:56 UTC) #12
cjacek
On 2014/03/19 17:54:56, bungeman1 wrote: > I see you on the list of signers (twice, ...
6 years, 9 months ago (2014-03-19 18:01:13 UTC) #13
bungeman-skia
The CQ bit was checked by bungeman@google.com
6 years, 9 months ago (2014-03-19 18:29:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cjacek@gmail.com/198643004/50001
6 years, 9 months ago (2014-03-19 18:29:55 UTC) #15
commit-bot: I haz the power
6 years, 9 months ago (2014-03-19 19:28:06 UTC) #16
Message was sent while issue was closed.
Change committed as 13862

Powered by Google App Engine
This is Rietveld 408576698