|
|
Descriptionios: Fixing base_unittests to build with gn.
BUG=459705
Committed: https://crrev.com/6de6e1f4058f8bf40cf8e2d5004ebe4e47687a24
Cr-Commit-Position: refs/heads/master@{#344277}
Patch Set 1 #
Total comments: 2
Patch Set 2 #
Total comments: 6
Patch Set 3 : #
Total comments: 1
Patch Set 4 : #
Messages
Total messages: 29 (14 generated)
sherouk@google.com changed reviewers: + dpranke@google.com, sdefresne@chromium.org
Can you review please?
dpranke@chromium.org changed reviewers: + dpranke@chromium.org
lgtm w/ one nit ... https://codereview.chromium.org/1285133004/diff/1/base/test/BUILD.gn File base/test/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/1/base/test/BUILD.gn#newcode128 base/test/BUILD.gn:128: } if (!is_ios) { ... } if (is_ios) { ... } else { ... } is awkward at best. Why not just move test_launcher.h down to the else clause where the other lines were?
Patchset #3 (id:40001) has been deleted
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by sherouk@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from dpranke@chromium.org Link to the patchset: https://codereview.chromium.org/1285133004/#ps60001 (title: "")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285133004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285133004/60001
sdefresne@chromium.org changed reviewers: - dpranke@google.com
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
sherouk@google.com changed reviewers: + thakis@chromium.org
sherouk@google.com changed reviewers: - dpranke@chromium.org, sdefresne@chromium.org
Can you review please? https://codereview.chromium.org/1285133004/diff/1/base/test/BUILD.gn File base/test/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/1/base/test/BUILD.gn#newcode128 base/test/BUILD.gn:128: } On 2015/08/14 20:08:39, Dirk Pranke wrote: > if (!is_ios) { > ... > } > if (is_ios) { > ... > } else { > ... > } > > is awkward at best. Why not just move test_launcher.h down to the else clause > where the other lines were? > Done.
https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... File build/secondary/third_party/nss/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... build/secondary/third_party/nss/BUILD.gn:1181: sources -= [ "nss/lib/freebl/intel-aes-x86-masm.asm" ] Shouldn't .asm files be ignored automatically on non-Win? Why is this needed for ios but not other platforms?
https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... File build/secondary/third_party/nss/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... build/secondary/third_party/nss/BUILD.gn:1181: sources -= [ "nss/lib/freebl/intel-aes-x86-masm.asm" ] On 2015/08/18 15:15:43, Nico wrote: > Shouldn't .asm files be ignored automatically on non-Win? Why is this needed for > ios but not other platforms? No, they are not filtered. This target is only defined on Win, Mac and iOS not linux. Mac build is not supported by GN yet
https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... File build/secondary/third_party/nss/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... build/secondary/third_party/nss/BUILD.gn:1181: sources -= [ "nss/lib/freebl/intel-aes-x86-masm.asm" ] On 2015/08/18 16:06:23, sherouk wrote: > On 2015/08/18 15:15:43, Nico wrote: > > Shouldn't .asm files be ignored automatically on non-Win? Why is this needed > for > > ios but not other platforms? > > No, they are not filtered. This target is only defined on Win, Mac and iOS not > linux. Mac build is not supported by GN yet There's a main waterfall bot doing GN bots on OS X: http://build.chromium.org/p/chromium.mac/builders/Mac%20GN%20%28dbg%29/builds... It builds base_unittests fine.
https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... File build/secondary/third_party/nss/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... build/secondary/third_party/nss/BUILD.gn:1181: sources -= [ "nss/lib/freebl/intel-aes-x86-masm.asm" ] On 2015/08/18 17:47:05, Nico wrote: > On 2015/08/18 16:06:23, sherouk wrote: > > On 2015/08/18 15:15:43, Nico wrote: > > > Shouldn't .asm files be ignored automatically on non-Win? Why is this needed > > for > > > ios but not other platforms? > > > > No, they are not filtered. This target is only defined on Win, Mac and iOS not > > linux. Mac build is not supported by GN yet > > There's a main waterfall bot doing GN bots on OS X: > http://build.chromium.org/p/chromium.mac/builders/Mac%20GN%20%28dbg%29/builds... > It builds base_unittests fine. I was not aware of that bot, Thanks! This bot doesn't build third part nss because it's not a dependency of base. Do i have to change the condition to be if(is_ios || is_mac) or i have to remove the condition?
https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... File build/secondary/third_party/nss/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... build/secondary/third_party/nss/BUILD.gn:1181: sources -= [ "nss/lib/freebl/intel-aes-x86-masm.asm" ] On 2015/08/19 13:14:32, sherouk wrote: > On 2015/08/18 17:47:05, Nico wrote: > > On 2015/08/18 16:06:23, sherouk wrote: > > > On 2015/08/18 15:15:43, Nico wrote: > > > > Shouldn't .asm files be ignored automatically on non-Win? Why is this > needed > > > for > > > > ios but not other platforms? > > > > > > No, they are not filtered. This target is only defined on Win, Mac and iOS > not > > > linux. Mac build is not supported by GN yet > > > > There's a main waterfall bot doing GN bots on OS X: > > > http://build.chromium.org/p/chromium.mac/builders/Mac%20GN%20%28dbg%29/builds... > > It builds base_unittests fine. > > I was not aware of that bot, Thanks! This bot doesn't build third part nss > because it's not a dependency of base. Do i have to change the condition to be > if(is_ios || is_mac) or i have to remove the condition? Ah, iOS is the only platform we still build NSS on, the rest is on borgingssl by now, right.. The gyp file seems to unconditionally remove this file on !is_win (which is already true in this block), so I'd just do this. (i.e. remove the "if is_ios" line) In general, looking at the gyp files and doing what's done there where it makes sense is a good pattern, as the gyp build is known to work.
https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... File build/secondary/third_party/nss/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/60001/build/secondary/third_p... build/secondary/third_party/nss/BUILD.gn:1181: sources -= [ "nss/lib/freebl/intel-aes-x86-masm.asm" ] On 2015/08/19 15:28:05, Nico wrote: > On 2015/08/19 13:14:32, sherouk wrote: > > On 2015/08/18 17:47:05, Nico wrote: > > > On 2015/08/18 16:06:23, sherouk wrote: > > > > On 2015/08/18 15:15:43, Nico wrote: > > > > > Shouldn't .asm files be ignored automatically on non-Win? Why is this > > needed > > > > for > > > > > ios but not other platforms? > > > > > > > > No, they are not filtered. This target is only defined on Win, Mac and iOS > > not > > > > linux. Mac build is not supported by GN yet > > > > > > There's a main waterfall bot doing GN bots on OS X: > > > > > > http://build.chromium.org/p/chromium.mac/builders/Mac%20GN%20%28dbg%29/builds... > > > It builds base_unittests fine. > > > > I was not aware of that bot, Thanks! This bot doesn't build third part nss > > because it's not a dependency of base. Do i have to change the condition to be > > if(is_ios || is_mac) or i have to remove the condition? > > Ah, iOS is the only platform we still build NSS on, the rest is on borgingssl by > now, right.. The gyp file seems to unconditionally remove this file on !is_win > (which is already true in this block), so I'd just do this. (i.e. remove the "if > is_ios" line) > > In general, looking at the gyp files and doing what's done there where it makes > sense is a good pattern, as the gyp build is known to work. Done, Thank you!
sherouk@google.com changed reviewers: + sdefresne@chromium.org - thakis@chromium.org
sherouk@google.com changed reviewers: + thakis@chromium.org
lgtm with nit https://codereview.chromium.org/1285133004/diff/80001/build/secondary/third_p... File build/secondary/third_party/nss/BUILD.gn (right): https://codereview.chromium.org/1285133004/diff/80001/build/secondary/third_p... build/secondary/third_party/nss/BUILD.gn:1180: sources -= [ "nss/lib/freebl/intel-aes-x86-masm.asm" ] nit: merge this with the sources -= line on the previous line: sources -= [ # mpi_x86_asm.c contains MSVC inline assembly code. "nss/lib/freebl/mpi/mpi_x86_asm.c", "nss/lib/freebl/intel-aes-x86-masm.asm", ]
The CQ bit was checked by sherouk@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from dpranke@chromium.org, thakis@chromium.org Link to the patchset: https://codereview.chromium.org/1285133004/#ps100001 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285133004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285133004/100001
Message was sent while issue was closed.
Committed patchset #4 (id:100001)
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/6de6e1f4058f8bf40cf8e2d5004ebe4e47687a24 Cr-Commit-Position: refs/heads/master@{#344277} |