diff --git a/tools/migration/legacy_fields_migration_lib.py b/tools/migration/legacy_fields_migration_lib.py index cd20e35..a7f64be 100644 --- a/tools/migration/legacy_fields_migration_lib.py +++ b/tools/migration/legacy_fields_migration_lib.py @@ -137,6 +137,7 @@ def migrate_legacy_fields(crosstool): # } feature = toolchain.feature.add() feature.name = "per_object_debug_info" + feature.enabled = True flag_set = feature.flag_set.add() flag_set.action[:] = [ "c-compile", "c++-compile", "c++-module-codegen", "assemble", diff --git a/tools/migration/legacy_fields_migration_lib_test.py b/tools/migration/legacy_fields_migration_lib_test.py index 2a9ece2..298b72e 100644 --- a/tools/migration/legacy_fields_migration_lib_test.py +++ b/tools/migration/legacy_fields_migration_lib_test.py @@ -938,7 +938,7 @@ class LegacyFieldsMigrationLibTest(unittest.TestCase): migrate_legacy_fields(crosstool) output = crosstool.toolchain[0] self.assertEqual(output.feature[0].name, "per_object_debug_info") - self.assertEqual(output.feature[0].enabled, False) + self.assertEqual(output.feature[0].enabled, True) def test_supports_fission_not_migrated_on_false(self): crosstool = make_crosstool("supports_fission: false")