Commit Graph

228 Commits

Author SHA1 Message Date
区长
c44791c89d
Fix LLDB can't work with --build-id (#336) 2020-02-04 13:57:40 -08:00
George Wright
2e930a3684
Add the Vulkan frontend to SwiftShader, and add targets for either the GL or the Vulkan frontend (#343) 2020-02-04 13:30:39 -08:00
Chinmay Garde
02b77827fd
Remove spurious include of GNI in //flutter. (#342)
The buildroot may no include targets from the engine repo. Besides, this one
was unused.
2020-02-03 12:02:35 -08:00
Damian Wrobel
5a4daa3f6f
Fix --format option for 'nm' (#338)
llvm-nm doesn't seem to accept shorten form of --format arguments,
see below an error excerpt:
 arm-rdk-linux-gnueabi-llvm-nm: for the   --format option: Cannot find option named 'p'!

So, let's pass the full name of the option (which also works for binutils version of nm).

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-02-03 11:03:48 -08:00
Chinmay Garde
ddbb697e47
Remove flutter_root. (#341)
All users of this variable have been removed in https://github.com/flutter/engine/pull/16311
2020-01-31 21:50:03 -08:00
stuartmorgan
85c55625fd
Revert "Switch Windows to VS 2019 toolchain (#339)" (#340)
This reverts commit 3c32883100.
2020-01-22 11:54:37 -08:00
stuartmorgan
3c32883100
Switch Windows to VS 2019 toolchain (#339)
Mirrors the change from 8e82c6ab1b%5E%21/

Also adds a new variable needed to build ToT ANGLE. This is because the toolchain change is unfortunately linked to rolling ANGLE at the same time, since the current ANGLE pull has build errors under VS 2017, but ToT hits internal compiler errors with the old toolchain, so they need to be updated in lockstep.

Part of fix for https://github.com/flutter/flutter/issues/48831
2020-01-21 22:33:31 -08:00
Jason Simmons
8a6510fad8
Update the filename used for FIDL coding tables (#337)
See https://fuchsia.googlesource.com/fuchsia/+/5b3778bd7b7a274df3a0918993facf63e3b6cffd
2019-12-12 12:30:03 -08:00
gaaclarke
aa8ba0714b
added no-rtti config (#335) 2019-11-22 10:23:26 -08:00
Chinmay Garde
db6869d0d1
GN Build rule updates for an upcoming SwiftShader roll. (#333)
SwiftShader is being rolled to 5d1e8540407c138f47028d64684f3da599430aa4.
2019-11-20 11:05:15 -08:00
Chinmay Garde
a985f7f63a
Fix WEBP_EXTERN signature for Fuchsia. (#332)
The WEBP_EXTERN macro is overriden by Flutter because the default implementation sets symbol visibility to default instead of hidden.
2019-11-18 18:13:27 -08:00
Chinmay Garde
0fec442d06
Define skia_using_fuchsia_sdk in sdk.gni. (#331)
This new flag will be used by Skia GN rules to determine if it should be built
using the Fuchsia SDK. This is to support standalone builds of Skia using the
Fuchsia SDK (it could previously only be built with the Fuchsia SDK as part
of Flutter).
2019-11-13 11:48:34 -08:00
Gary Qian
a518e359c4
Remove "/WX" treat warnings as errors flag from global flags. (#330) 2019-10-21 15:09:05 -07:00
Chinmay Garde
994c6c0648
Revert "Reland "Upgrade compiler to Clang 10." (#327)" (#329)
This reverts commit b35cf60d67.
2019-10-18 15:48:53 -07:00
Gary Qian
64a121882e
Remove over-broad -Wheader-hygiene cflag (#328) 2019-10-18 15:47:07 -07:00
Chinmay Garde
b35cf60d67
Reland "Upgrade compiler to Clang 10." (#327)
This reverts commit 1c98a42644.
2019-10-16 12:32:02 -07:00
Chinmay Garde
9c893948fd
Disable global static thread safety analysis and enable RTTI in libcxx. (#326)
Unblocks https://github.com/flutter/engine/pull/13123

* We should only enable static thread safety checks for Flutter translation units. Not all third party code is correctly annotated for static checks. This will be enabled seprately in //flutter.
* Allow third party users of libcxx to use RTTI (used by ICU).
2019-10-14 16:25:03 -07:00
Chinmay Garde
1c98a42644
Revert "Upgrade compiler to Clang 9 and use engine libcxx on all platforms. (#323)" (#325)
This reverts commit 73331c6059.
2019-10-14 16:04:34 -07:00
Alexander Aprelev
eb11d9d9b6
Allow ninja on Windows to honor the fact that .lib-files are not touched if there are no changes. (#324)
Fixes https://github.com/flutter/flutter/issues/42021
2019-10-08 16:11:47 -07:00
Chinmay Garde
73331c6059
Upgrade compiler to Clang 9 and use engine libcxx on all platforms. (#323) 2019-10-08 15:41:27 -07:00
Chinmay Garde
edd0f2d196
Wire up undefined behavior sanitizer. (#322) 2019-10-04 21:06:17 -07:00
Chinmay Garde
eb6a23609d
Wire up memory sanitizer. (#321) 2019-10-04 16:03:45 -07:00
Chinmay Garde
41b6918f1c
Wire up the standalone leak sanitizer. (#320)
By default, address sanitizer enabled builds can detect leaks if the `ASAN_OPTIONS=detect_leaks=1` environment option is specified. If only leaks need to detected, this standalong option may be used.
2019-10-04 15:51:22 -07:00
Chinmay Garde
a2a0a4e8ca
Wire up thread sanitizer. (#319) 2019-10-04 14:18:33 -07:00
Chinmay Garde
8168eb1d09
Fix Address Sanitizer builds. (#318) 2019-10-04 14:11:12 -07:00
Jason Simmons
3b6ae6cbb7
Provide a way to override the host toolchain for a compiled action (#317) 2019-10-04 12:18:16 -07:00
Dan Field
01e923507b
kill unneeded code (#316) 2019-10-03 10:50:22 -07:00
Kaushik Iska
135364b8f5
For Fuchsia targets allow c99-designator warnings (#315)
This is to unblock the auto-roller as seen in:
https://cirrus-ci.com/task/5486455142481920?command=compile_fuchsia#L176
2019-09-27 09:40:14 -07:00
Dan Field
25b164b5f4
Refer to SDK rather than locally checked out packages (#314) 2019-09-18 12:40:49 -07:00
Chinmay Garde
9c762bea4e
Remove FNL related rules. (#313) 2019-09-16 17:34:36 -07:00
Chinmay Garde
3a215c622c
Disable warnings no longer present in Fuchsia Clang. (#312)
These warnings were present for a short duration on LLVM/Clang. The latest rolls
no longer have the same. This is causing toolchain autorollers to fail on
the specification of the unknown flag.

We should figure out if it makes sense to slow down the cadence of these rolls.
2019-09-10 19:57:06 -07:00
Kaushik Iska
b20950ca00
Ignore some warnings for fuchsia (#311) 2019-09-06 18:07:58 -07:00
Dan Field
a636978c4b
Add new lines to eof (#310) 2019-09-05 13:13:47 -07:00
Dan Field
8d73ea7887
enable LTO builds for Fuchsia (#309) 2019-09-04 16:17:44 -07:00
Dan Field
781bda8eb2
enable LTO builds for Fuchsia (#308) 2019-09-04 16:03:56 -07:00
Chris Bracken
fd9617aec9
Enable -Wnewline-eof (#307)
Note that as of C++11, the standard specifies that such files shall be
treated as though they include a newline at end-of-file. We add this
warning solely to match Fuchsia's clang warnings and ensure we don't
commit files without newline at EOF that will later break when rolled to
Fuchsia.
2019-08-27 01:00:59 -07:00
Dan Field
58d85da77c
Fix Xcode check (#306) 2019-08-26 21:53:46 -07:00
Dan Field
6a9ad927d5
Fix up using bitcode marker (#305) 2019-08-26 12:49:09 -07:00
Chinmay Garde
5a33d6ab06
Track toolchain headers to detect toolchain updates instead of macro. (#302)
To detect and rebuild all TUs on toolchain updates, we inherited a rule from
Chromium whereby the Git SHA of the //buildtools repo would be used to insert a
preprocessor define in each TUs build invocation. But we don't use a
//buildtools as a repo anymore. Instead buildtools comes from CIPD. So the
script now picks the //buildroot revision instead. But we don't specify the
toolchain revision in that repo either though. It is instead specified in the
engine. So if the engine updates the toolchain, only the next (unrelated)
//buildroot rev will ensure all old TUs are rebuilt unless the `out` directory
is cleared on each invocation.

This patch replaces the old buggy technique with one where the system headers
(that include headers in buildtools) are tracked in addition to user headers.
When the toolchain updates, these "system" header timestamps will be invalidated
and the old artifacts invalidate.

The simple change of just tracking the //flutter (where the toolchain SHA is
present) would make it so that each engine change (frequent) would rebuild all
TUs instead of just each buildtools change (rarer). Also, this technique would
leave us susceptible to the kind of issue that led us in this situation in the
first place.

I also just searched and replaced all calls to track user dependencies with ones
to track system + user dependencies. Not all toolchain are actually being used.
We should clean these up in a separate patch.
2019-08-16 13:01:07 -07:00
stuartmorgan
10b36e535f
Make minimum deployment target 10.11 (#301)
Separates the min SDK version from the min deployment version on macOS
(as it already is on iOS), and lowers it to 10.11.

Using 10.11 as a minimum allows a wider range of hardware support, and
there are currently no issues compiling the engine with a target of
10.11.

Part of https://github.com/flutter/flutter/issues/33200
2019-08-15 14:58:15 -07:00
Chinmay Garde
609dd1c93d
Remove support for the i386 variant of the Mac toolchain. (#300)
gen_snapshot was the last user and an upcoming toolchain update will drop
support for the same. Cleanup the cruft.
2019-08-13 22:26:02 -07:00
stuartmorgan
16320fb5c3
Reland: Add support for ANGLE using upstream build rules (#296)
This adds minimal (in some cases dummy) files sufficient to allow
building ANGLE in this buildroot using the build_with_chromium
option.

This relanded version uses the new swiftshader_ prefixed versions of the
DLL names in the swiftshader build, which are loaded preferentially if
available. This ensures that the swiftshader tests will use those,
rather than the potentially incompatible ANGLE versions. In local
testing, this resolved the ShellTest failures that led to the previous
revert.
2019-08-08 19:40:22 -07:00
Jason Simmons
6050477e8b
Build JARs containing the Android embedding sources and the engine native library (#297) 2019-08-08 15:25:38 -07:00
Jason Simmons
c9561ea9f4
Disable the implicit-int-float-conversion warning added in the latest Fuchsia Clang toolchain (#298)
This warning produces errors when building the current versions of Skia and ICU.
2019-08-08 13:17:56 -07:00
Shi-Hao Hong
c69cead9b6
Revert "Compile libC++ FS related TUs. (#292)" (#295)
This reverts commit 6f8180a634.
2019-08-07 13:00:10 -04:00
stuartmorgan
66afc8a17a
Revert "Add support for ANGLE using upstream build rules (#290)" (#294)
Reverting due to ShellTest failures on Windows.
2019-08-07 09:08:07 -07:00
stuartmorgan
07d0e2668a
Fix EGL output name on Windows (#293)
Fixes a mistake in the renaming of the SwiftShader EGL DLL in #290
2019-08-06 20:57:30 -07:00
Chinmay Garde
6f8180a634
Compile libC++ FS related TUs. (#292) 2019-08-06 16:50:34 -07:00
Shi-Hao Hong
f2bddfc8e3
Roll to Android SDK 29 (#291)
* Roll to Android SDK 29 

* Update Android SDK build-tools version to 29.0.1
2019-08-06 18:22:02 -04:00
stuartmorgan
182ad4097e
Add support for ANGLE using upstream build rules (#290)
Reland of fe3b82877e (#276)

This adds minimal (in some cases dummy) files sufficient to allow
building ANGLE in this buildroot using the build_with_chromium option.
2019-08-06 13:39:44 -07:00