diff --git a/base/allocator/allocator.gyp b/base/allocator/allocator.gyp index adc78fdbf7a3f5..d906eea0aace26 100644 --- a/base/allocator/allocator.gyp +++ b/base/allocator/allocator.gyp @@ -380,9 +380,10 @@ }, # 'allocator' target. { # GN: //base/allocator:features + # When referenced from a target that might be compiled in the host + # toolchain, always refer to 'allocator_features#target'. 'target_name': 'allocator_features', 'includes': [ '../../build/buildflag_header.gypi' ], - 'toolsets': ['host', 'target'], 'variables': { 'buildflag_header_path': 'base/allocator/features.h', 'buildflag_flags': [ diff --git a/base/base.gyp b/base/base.gyp index 6f1427d16374d5..3f03dd87565155 100644 --- a/base/base.gyp +++ b/base/base.gyp @@ -22,7 +22,7 @@ }, 'dependencies': [ 'allocator/allocator.gyp:allocator', - 'allocator/allocator.gyp:allocator_features', + 'allocator/allocator.gyp:allocator_features#target', 'base_debugging_flags#target', 'base_static', 'base_build_date#target',