Merge pull request #382 from johnmccutchan/roll_mojo

Roll mojo (again)
This commit is contained in:
John McCutchan 2015-07-30 13:19:00 -07:00
commit 732ae5bf81
2 changed files with 6 additions and 23 deletions

View File

@ -13,25 +13,22 @@
namespace mojo {
namespace internal {
namespace {
const ArrayValidateParams* GetMapKeyValidateParamsDefault() {
// The memory allocated here never gets released because calling a
// destructor at exit time makes clang unhappy.
inline const ArrayValidateParams* GetMapKeyValidateParamsDefault() {
// The memory allocated here never gets released to not cause an exit time
// destructor.
static const ArrayValidateParams* validate_params =
new ArrayValidateParams(0, false, nullptr);
return validate_params;
}
const ArrayValidateParams* GetMapKeyValidateParamsForStrings() {
// The memory allocated here never gets released because calling a
// destructor at exit time makes clang unhappy.
inline const ArrayValidateParams* GetMapKeyValidateParamsForStrings() {
// The memory allocated here never gets released to not cause an exit time
// destructor.
static const ArrayValidateParams* validate_params = new ArrayValidateParams(
0, false, new ArrayValidateParams(0, false, nullptr));
return validate_params;
}
} // namespace
template <typename MapKey>
struct MapKeyValidateParamsFactory {
static const ArrayValidateParams* Get() {

View File

@ -286,20 +286,6 @@ def main():
target = os.path.join(sdk_ext_dir, relative_source)
copy_or_link(source, target)
lib_mojom_path = os.path.join(lib_path, "mojom")
# Copy generated mojom.dart files.
# HACK(johnmccutchan): This entire step will be removed once all DartPackage
# annotations are in place. Until then, skip doing this for the mojo and
# mojo_services packages.
if (args.package_name != 'mojo') and (args.package_name != 'mojo_services'):
generated_mojom_lib_path = os.path.join(args.gen_directory, "mojom/lib")
for mojom_source_path in args.mojom_sources:
path = mojom_path(mojom_source_path)
source_path = '%s.dart' % os.path.join(generated_mojom_lib_path, path)
target_path = '%s.dart' % os.path.join(lib_mojom_path, path)
copy(source_path, target_path)
# Symlink packages/
package_path = os.path.join(args.package_root, args.package_name)
link(lib_path, package_path)