Граф коммитов

33 Коммитов

Автор SHA1 Сообщение Дата
Sylvain Defresne 5383c9f143 [apple] Add a `is_apple` gn variable and use it
As https://crrev.com/c/2299189 adds `OS_MAC` & `OS_APPLE`, add a gn
variable `is_apple` that is true when `OS_APPLE` is defined. This
allow an easy mapping between gn variables and cpp macros.

Convert all usages of `is_ios || is_mac` or `is_mac || is_ios` to
use the new variable instead.

Bug: 1105907
Change-Id: I4cef55496a0ccf0a6162e60409ff3b7996f633dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315695
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791803}
GitOrigin-RevId: fafffe8843d5dac1ef479ae2e9058e0f93faf82d
2020-07-27 07:21:13 -07:00
Nico Weber 1ab8b1afa1 Reformat all gn files in /build.
`gn format` recently changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.

Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.

This CL was uploaded by git cl split.

R=tikuta@chromium.org

Bug: 1041419
Change-Id: I15bd43c6df0ba87f879e5226e4dbb1af7ba73f03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1998745
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#731078}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4782d7368c37ae35cf0c44456ba8307079a4d24e
2020-01-14 04:52:17 +00:00
Hans Wennborg 127a04882c Roll clang 365097:369647.
Extra changes in this update:
- Update the released clang version to 10.0.0.

- Move -momit-leaf-frame-pointer next to -fno-omit-frame-pointer
  since that's where it logically belongs. clang started warning
  on momit without fno-omit after r365860, but it stopped doing this
  again in r368728 so this change is no longer needed for the roll.
  But it's still a nice cleanup.

- A file in the profile runtime with static init was renamed, do that in the
  check

- Disable new -Wno-implicit-float-conversion warning

- Remove ifdefs for plugins using new ErrorOr API in clang

- Remove -Wno-error=return-stack-address flag for ToT builds.

- Replace llvm::make_unique with std::make_unique in clang plugins for
  LLVM r369130, remove LLVM_FORCE_HEAD_REVISION ifdefs

TBR=dprake

Binary-Size: crbug.com/992372, compiler update adds 32KB, seems reasonabe
Bug: 983371
Change-Id: Icdcbd70adec2548a2bf8222df15560e70ce32d1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763261
Commit-Queue: Hans Wennborg <hans@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#689588}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 18026ae8f2ca650128026720a9244e8cde5b9625
2019-08-22 19:07:46 +00:00
Jamie Madill b9e0d9224b Revert "Roll clang 365097:368742."
This reverts commit 8b43f27599d3b490fc6bc936c4e0e1d3c0f38aeb.

Reason for revert: Causing crashes in ANGLE's dEQP tests. Likely
related to exception handling on Windows.

See issue for more details.

Bug: 994333

Original change's description:
> Roll clang 365097:368742.
> 
> Extra changes in this update:
> - Update the released clang version to 10.0.0.
> 
> - Move -momit-leaf-frame-pointer next to -fno-omit-frame-pointer
>   since that's where it logically belongs. clang started warning
>   on momit without fno-omit after r365860, but it stopped doing this
>   again in r368728 so this change is no longer needed for the roll.
>   But it's still a nice cleanup.
> 
> - A file in the profile runtime with static init was renamed, do that in the
>   check
> 
> - Disable new -Wno-implicit-float-conversion warning
> 
> - Remove ifdefs for plugins using new ErrorOr API in clang
> 
> - Remove -Wno-error=return-stack-address flag for ToT builds.
> 
> TBR=dpranke
> 
> Binary-Size: crbug.com/992372, compiler update adds 32KB, seems reasonable
> Bug: 983371
> Change-Id: Id6e64948fe4966b486aa77615e19f4f7566f13ed
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1751203
> Commit-Queue: Hans Wennborg <hans@chromium.org>
> Reviewed-by: Nico Weber <thakis@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#686837}

TBR=thakis@chromium.org,hans@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 983371
Change-Id: I3e577f9bb0e8c42e29b06b7580fadc80a0529f2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1756767
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#687472}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 90cdc2584cd4f7e6c905d1f228084736ce9ee6e7
2019-08-15 23:12:47 +00:00
Hans Wennborg 803c36b3ca Roll clang 365097:368742.
Extra changes in this update:
- Update the released clang version to 10.0.0.

- Move -momit-leaf-frame-pointer next to -fno-omit-frame-pointer
  since that's where it logically belongs. clang started warning
  on momit without fno-omit after r365860, but it stopped doing this
  again in r368728 so this change is no longer needed for the roll.
  But it's still a nice cleanup.

- A file in the profile runtime with static init was renamed, do that in the
  check

- Disable new -Wno-implicit-float-conversion warning

- Remove ifdefs for plugins using new ErrorOr API in clang

- Remove -Wno-error=return-stack-address flag for ToT builds.

TBR=dpranke

Binary-Size: crbug.com/992372, compiler update adds 32KB, seems reasonable
Bug: 983371
Change-Id: Id6e64948fe4966b486aa77615e19f4f7566f13ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1751203
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#686837}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8b43f27599d3b490fc6bc936c4e0e1d3c0f38aeb
2019-08-14 16:29:45 +00:00
Fergus Dall 35d7eef5d6 Revert "Reland "Roll clang 365097:368354.""
This reverts commit b897e9bf67b6c0dc04269e9527e9e9064cd76af1.

Reason for revert: Bisecting pinpoints this CL as responsible for breaking WebKit Linux MSAN. See https://ci.chromium.org/p/chromium/builders/ci/WebKit%20Linux%20MSAN/1194 for the first failure caused by it. Please run the linux-webkit-msan-rel tryjob and ensure it passes before resubmitting.

Original change's description:
> Reland "Roll clang 365097:368354."
> 
> This is a reland of 5c7654a48b01a46a7b26a5c37dcad2c17b12ee64
> 
> I moved the -momit-leaf-pointer flag so that it is not redundant
> with -fomit-frame-pointer and the x86-only warning doesn't occur.
> 
> Original change's description:
> > Roll clang 365097:368354.
> >
> > Update the released clang version to 10.0.0.
> >
> > Binary-Size: crbug.com/992372, compiler update adds 32KB, seems reasonable
> > Bug: 983371
> > Change-Id: I378b4e30ec045e9206ba11b77a95d81dc3008f1d
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713302
> > Reviewed-by: Nico Weber <thakis@chromium.org>
> > Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> > Commit-Queue: Reid Kleckner <rnk@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#685744}
> 
> Bug: 983371
> Change-Id: Ia2d628b4710033de4b80700de7bd96bbe5d9d73f
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1747138
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Reviewed-by: Nico Weber <thakis@chromium.org>
> Commit-Queue: Reid Kleckner <rnk@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#685783}

TBR=thakis@chromium.org,hans@chromium.org,rnk@chromium.org,dpranke@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 983371
Change-Id: I36911cf6042bd8fddbde923f83d68e221b5fc993
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1747491
Reviewed-by: Fergus Dall <sidereal@google.com>
Commit-Queue: Fergus Dall <sidereal@google.com>
Cr-Original-Commit-Position: refs/heads/master@{#685909}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e0e3d85599361c275320594e7fc8b27a2e7056bb
2019-08-12 03:30:00 +00:00
Reid Kleckner 8c02dfaa00 Reland "Roll clang 365097:368354."
This is a reland of 5c7654a48b01a46a7b26a5c37dcad2c17b12ee64

I moved the -momit-leaf-pointer flag so that it is not redundant
with -fomit-frame-pointer and the x86-only warning doesn't occur.

Original change's description:
> Roll clang 365097:368354.
>
> Update the released clang version to 10.0.0.
>
> Binary-Size: crbug.com/992372, compiler update adds 32KB, seems reasonable
> Bug: 983371
> Change-Id: I378b4e30ec045e9206ba11b77a95d81dc3008f1d
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713302
> Reviewed-by: Nico Weber <thakis@chromium.org>
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Commit-Queue: Reid Kleckner <rnk@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#685744}

Bug: 983371
Change-Id: Ia2d628b4710033de4b80700de7bd96bbe5d9d73f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1747138
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Reid Kleckner <rnk@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#685783}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b897e9bf67b6c0dc04269e9527e9e9064cd76af1
2019-08-09 23:22:50 +00:00
Scott Little e9d1dba298 Revert "Roll clang 365097:368354."
This reverts commit 5c7654a48b01a46a7b26a5c37dcad2c17b12ee64.

Reason for revert: Broke compilation on Linux Builder (dbg)(32):

https://ci.chromium.org/p/chromium/builders/ci/Linux%20Builder%20%28dbg%29%2832%29

Example failure: https://ci.chromium.org/p/chromium/builders/ci/Linux%20Builder%20%28dbg%29%2832%29/116053

Original change's description:
> Roll clang 365097:368354.
> 
> Update the released clang version to 10.0.0.
> 
> Binary-Size: crbug.com/992372, compiler update adds 32KB, seems reasonable
> Bug: 983371
> Change-Id: I378b4e30ec045e9206ba11b77a95d81dc3008f1d
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713302
> Reviewed-by: Nico Weber <thakis@chromium.org>
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Commit-Queue: Reid Kleckner <rnk@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#685744}

TBR=thakis@chromium.org,hans@chromium.org,rnk@chromium.org,dpranke@chromium.org

Change-Id: I55b318b298ea762bf9e7d76fa1c44f5e0307a00e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 983371
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1746631
Reviewed-by: Scott Little <sclittle@chromium.org>
Commit-Queue: Scott Little <sclittle@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#685753}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c4812f3b9d4fecbc0178699c0eec407a879e3adb
2019-08-09 22:18:22 +00:00
Reid Kleckner 6a69f9ef68 Roll clang 365097:368354.
Update the released clang version to 10.0.0.

Binary-Size: crbug.com/992372, compiler update adds 32KB, seems reasonable
Bug: 983371
Change-Id: I378b4e30ec045e9206ba11b77a95d81dc3008f1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713302
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Reid Kleckner <rnk@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#685744}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5c7654a48b01a46a7b26a5c37dcad2c17b12ee64
2019-08-09 22:01:33 +00:00
Nico Weber 190e1453d5 Disable Wimplicit-int-float-conversion on the clang tot bots in nocompile tests as well.
TBR=hans

Bug: 989932
Change-Id: Id91684d103ad0ce6970c8b69d530d6faf84fc6af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1731429
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#683177}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c6f2961c3239576f01f4055b8280b019fd31747
2019-08-01 15:30:22 +00:00
Hans Wennborg 08515aa47a Make nocompile tests respect clang_base_path
This will help reproducing nocompile test failures with locally built
Clang, and also fixes a TODO from 2011 :-)

Bug: 913420
Change-Id: I613f0836d92c8f3f6513e0e03af83206447e4c76
Reviewed-on: https://chromium-review.googlesource.com/c/1409188
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#622440}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8261b16886d3c7732fd2a87a74b32f7263d290ed
2019-01-14 13:40:16 +00:00
Eric Seckler 53ab8d457a build: Pass on dependencies of nocompile tests
Add the dependencies of the invoker target to the generated nocompile
targets. This should address the flakiness issues of building
content_nocompile_tests.

Bug: 882234
Change-Id: Ic7f7a07d3a6567202b3a0da8800228c7329f119d
Reviewed-on: https://chromium-review.googlesource.com/1215964
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#589918}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fb2a899dd5bcf5d7801a69f2e99d04ea7393955d
2018-09-10 15:25:30 +00:00
Eric Seckler b403e5460f content: Add a nocompile test for browser TaskTraits.
Also adds the generated output file directory as include directory to
nocompile build targets.

Bug: 878356, 867421
Change-Id: I51a8433a1e5295949f67aaea188444f81c394100
Reviewed-on: https://chromium-review.googlesource.com/1194224
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#587265}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 03d0d427b4f1713bcaf975d1586f4ad4be53bec5
2018-08-29 20:06:36 +00:00
Lei Zhang 70ef8f27cc Revert "Prevent implicit cast from 0 to StructPtr<T>."
This reverts commit d2ca40e5ebf0f76aed44460e453d78227d63e7dc.

Reason for revert: Broke the build.

https://ci.chromium.org/buildbot/chromium/Linux%20x64/63245 

Original change's description:
> Prevent implicit cast from 0 to StructPtr<T>.
> 
> Change-Id: Ibe9f789de8af9717b7d9a8d1f82f024acb04d504
> Reviewed-on: https://chromium-review.googlesource.com/935753
> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
> Reviewed-by: Nico Weber <thakis@chromium.org>
> Reviewed-by: Ken Rockot <rockot@chromium.org>
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#554262}

TBR=dcheng@chromium.org,thakis@chromium.org,rockot@chromium.org,lukasza@chromium.org

Change-Id: I10463286039ad52b501c7b7a2399d956792ccf0a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/1031254
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#554267}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f84e27282ef9ea831aec98817e39df7400348e48
2018-04-27 02:24:00 +00:00
Lukasz Anforowicz 8b11fa27de Prevent implicit cast from 0 to StructPtr<T>.
Change-Id: Ibe9f789de8af9717b7d9a8d1f82f024acb04d504
Reviewed-on: https://chromium-review.googlesource.com/935753
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Ken Rockot <rockot@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#554262}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d2ca40e5ebf0f76aed44460e453d78227d63e7dc
2018-04-27 01:48:25 +00:00
Victor Costan b7e8e3af60 Unit tests for base/thread_annotations.h.
Bug: 805814
Change-Id: Ib2441c3ed2060e73062c3993a6876314cac9a669
Reviewed-on: https://chromium-review.googlesource.com/921321
Commit-Queue: Victor Costan <pwnall@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#537110}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 63cd2c2dfef0dbc7a588006b72e0ec358026cf11
2018-02-16 02:29:07 +00:00
Tom Anderson 0959211210 Remove libunwind arm dependency from libc++abi (src-side changes)
The buildtools roll includes these revisions:
437a616be5..a2cbf26d9e

BUG=803679
R=thakis@chromium.org

Change-Id: Ie398be7d8ef52d6a733f52043300449b3d35e947
Reviewed-on: https://chromium-review.googlesource.com/875330
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#532259}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ea4edeec4194c6e751d3be2d5fa262a2475f6c47
2018-01-28 01:31:48 +00:00
Tom Anderson 52d010b493 Relativize paths in build files
BUG=787223
R=dpranke@chromium.org
TBR=jam@chromium.org

Change-Id: I53e3069033a0ff41525ca80fa60504b3fc3c3c14
Reviewed-on: https://chromium-review.googlesource.com/784351
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#519540}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0412593176bbe398315036d4220dac780101d5e6
2017-11-28 03:13:13 +00:00
tzik 901e8c7e4b Switch nocompile_driver.py to libc++ and C++14
As the main sources has switched to C++14, nocompile tests should also
switch to it.

Bug: 554717
Change-Id: Ib06b3e931b78d545e709d6f7b886ca895840fbd9
Reviewed-on: https://chromium-review.googlesource.com/593372
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#490826}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cffd16beb3874844101953c888e7d497c94a05cb
2017-08-01 00:23:32 +00:00
Trent Apted 358044b197 Fix nocompile_driver.py when there are spaces in CFLAGS
To fix, retain the array-ness of the arguments rather
than concatenating strings.

Bug: 749393
Change-Id: Icceacf14e30117da1617134e4ef6a364f9808275
Reviewed-on: https://chromium-review.googlesource.com/587693
Reviewed-by: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#490147}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 71169bb955009f327c971361c69f278598d82a47
2017-07-28 00:12:10 +00:00
wychen fd23d9e9c2 Enable no-compile tests on Mac and iOS clang
BUG=105388

Review-Url: https://codereview.chromium.org/2603753002
Cr-Original-Commit-Position: refs/heads/master@{#453317}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 09ac3a21d0b908ca26d0898f58ea77be7e9462d2
2017-02-27 20:19:26 +00:00
wychen 596bf802c6 Fix nocompile test failure due to clang roll and re-enable
BUG=695991,681136

Review-Url: https://codereview.chromium.org/2716913002
Cr-Original-Commit-Position: refs/heads/master@{#453010}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7525a848b3036662353f3d3b244fa4e3e9114f9e
2017-02-25 00:14:32 +00:00
Nico Weber d8d97946ca Disable nocompile tests after clang roll
Results need rebasing.

BUG=695991,685244
TBR=lazyboy@chromium.org

Review-Url: https://codereview.chromium.org/2711343004 .
Cr-Original-Commit-Position: refs/heads/master@{#452912}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b87e5b0b9505543cc4270479af08e60da11cd507
2017-02-24 20:25:00 +00:00
brettw 3ca401c4e0 Validate GN substitutions in args and rsp files.
Previously GN did not validate the substitution types used in the args or
response_file_contents for action_foreach targets. If a caller used an
incorrect one (as was happening in the nocompile test template), GN would
assert in debug mode and skip the substitution in release mode.

This didn't seem to cause a problem for the nocompile test because the output
file is not used.

This adds the necessary validation for these types so GN will give a proper
error message on misuse, and adds some additional unit tests for other aspects
of action_foreach parameter validation.

Review-Url: https://codereview.chromium.org/2627703002
Cr-Original-Commit-Position: refs/heads/master@{#444507}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bb57bea1642b294af0578ab0e50d1c63bb5491b2
2017-01-18 22:11:05 +00:00
wychen 74170c9ee8 Disable no-compile tests when cross-compiling
BUG=679699

Review-Url: https://codereview.chromium.org/2623753003
Cr-Original-Commit-Position: refs/heads/master@{#442592}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1e7c9add546d108518e9128cb9cd24b873f5afd4
2017-01-10 15:38:56 +00:00
wychen 5ce56205af [reland] Enable no-compile tests on linux clang
BUG=105388

Review-Url: https://codereview.chromium.org/2599243002
Cr-Original-Commit-Position: refs/heads/master@{#441338}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4f7b28c2ea7d46ff26d550e7c16b1a151c213d68
2017-01-04 08:07:23 +00:00
wychen c176f37e5d Fix no-compile tests on Linux by adding sysroot
It became necessary to specify sysroot after the following CL:
https://codereview.chromium.org/2583353002
Otherwise, std::is_trivially_copyable wouldn't be there.

This CL also fixes the missing header issue on Mac.

BUG=105388, 676800

Review-Url: https://codereview.chromium.org/2595413004
Cr-Original-Commit-Position: refs/heads/master@{#441327}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 296d75bd21e5f6b3d492dbec0f14dc22d837bf0b
2017-01-04 06:54:52 +00:00
thakis a9e7851a16 Revert of Enable no-compile tests on linux clang (patchset #1 id:1 of https://codereview.chromium.org/2594943002/ )
Reason for revert:
Doesn't build everywhere, see https://crbug.com/676649

Original issue's description:
> Enable no-compile tests on linux clang
>
> BUG=105388
>
> Committed: https://crrev.com/7a9a5838fe86ec2de95e61adb4cabe959663b8b2
> Cr-Commit-Position: refs/heads/master@{#440384}

TBR=dcheng@chromium.org,jbudorick@chromium.org,wychen@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=105388

Review-Url: https://codereview.chromium.org/2593333004
Cr-Original-Commit-Position: refs/heads/master@{#440438}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: de864efb596ca3df1a6df84a67f110221fb7bcaf
2016-12-22 16:40:05 +00:00
wychen 8c070425b0 Enable no-compile tests on linux clang
BUG=105388

Review-Url: https://codereview.chromium.org/2594943002
Cr-Original-Commit-Position: refs/heads/master@{#440384}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7a9a5838fe86ec2de95e61adb4cabe959663b8b2
2016-12-22 11:33:45 +00:00
wychen f1d7b7374b Revert of Enable no-compile tests on non-windows and non-ios clang (patchset #3 id:40001 of https://codereview.chromium.org/2504383002/ )
Reason for revert:
Break Mac compilation.
https://build.chromium.org/p/chromium/builders/Mac/builds/22001/steps/compile/logs/stdio

Original issue's description:
> Enable no-compile tests on non-windows and non-ios clang
>
> BUG=105388
>
> Committed: https://crrev.com/2c255b993eed2520629078b6f89992edd4303563
> Cr-Commit-Position: refs/heads/master@{#440024}

TBR=dcheng@chromium.org,jbudorick@chromium.org,thakis@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=105388

Review-Url: https://codereview.chromium.org/2593933002
Cr-Original-Commit-Position: refs/heads/master@{#440034}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 256ea14b868202a4f2a8ddd27cd70794f0515598
2016-12-21 06:05:44 +00:00
wychen 1ffd22d581 Enable no-compile tests on non-windows and non-ios clang
BUG=105388

Review-Url: https://codereview.chromium.org/2504383002
Cr-Original-Commit-Position: refs/heads/master@{#440024}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2c255b993eed2520629078b6f89992edd4303563
2016-12-21 05:11:22 +00:00
tzik 3af64fd9c3 Fix base_nocompile_tests dependency
nocompile_tests wasn't aware header file dependencies that included by
a .nc file. That makes a test failure sticky.

This CL makes nocompile_driver.py to emit a depfile to let ninja know
the implicit dependencies.

Review URL: https://codereview.chromium.org/1698763002

Cr-Original-Commit-Position: refs/heads/master@{#375504}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b5f8f4bca759e2535439edb022cc1f3e0b5a897d
2016-02-16 02:36:01 +00:00
tzik 2a6d794830 Add no-compile test support to GN build
No-compile tests have been disabled for a while on GYP build, and GN
didn't support it.

This CL converts //build/nocompile.gypi to //build/nocompile.gni to
support no-compile test, and splits out test cases from base_unittests
to base_nocompile_tests on GN build.

This doesn't enable the test by default. To opt-in to it, set
enable_nocompile_tests to true in GN args.

BUG=568478

Review URL: https://codereview.chromium.org/1526933002

Cr-Original-Commit-Position: refs/heads/master@{#365757}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0137dc5d4031d8bc13d28adf579a9af6a2169c75
2015-12-17 05:30:28 +00:00