mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
[gardening] Restrict ReloadTestScript to non-PRODUCT mode.
Fixes linking error on vm-kernel-win-product-x64. TEST=Build succeeds on Windows PRODUCT trybot. Cq-Include-Trybots: luci.dart.try:vm-kernel-win-product-x64-try Change-Id: I6b433441ce0b1a112a03c9e8fb61d1bb59a2322c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/209904 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>
This commit is contained in:
parent
6393841036
commit
45e6b6970e
|
@ -36,6 +36,7 @@ LibraryPtr LoadTestScript(const char* script,
|
|||
return lib.ptr();
|
||||
}
|
||||
|
||||
#if !defined(PRODUCT)
|
||||
LibraryPtr ReloadTestScript(const char* script) {
|
||||
Dart_Handle api_lib;
|
||||
{
|
||||
|
@ -48,6 +49,7 @@ LibraryPtr ReloadTestScript(const char* script) {
|
|||
EXPECT(!lib.IsNull());
|
||||
return lib.ptr();
|
||||
}
|
||||
#endif
|
||||
|
||||
FunctionPtr GetFunction(const Library& lib, const char* name) {
|
||||
Thread* thread = Thread::Current();
|
||||
|
|
|
@ -56,7 +56,7 @@ LibraryPtr LoadTestScript(const char* script,
|
|||
Dart_NativeEntryResolver resolver = nullptr,
|
||||
const char* lib_uri = RESOLVED_USER_TEST_URI);
|
||||
|
||||
LibraryPtr ReloadTestScript(const char* script);
|
||||
NOT_IN_PRODUCT(LibraryPtr ReloadTestScript(const char* script));
|
||||
|
||||
FunctionPtr GetFunction(const Library& lib, const char* name);
|
||||
ClassPtr GetClass(const Library& lib, const char* name);
|
||||
|
|
Loading…
Reference in a new issue