fix(bazel): don't try to do flatmoduleindex under Blaze (#23083)
PR Close #23083
This commit is contained in:
parent
439030fb57
commit
be10bf538b
|
@ -50,7 +50,8 @@ def _should_produce_flat_module_outs(ctx):
|
|||
Returns:
|
||||
true iff we should run the bundle_index_host to produce flat module metadata and bundle index
|
||||
"""
|
||||
return bool(ctx.attr.module_name)
|
||||
is_bazel = not hasattr(native, "genmpm")
|
||||
return is_bazel and ctx.attr.module_name
|
||||
|
||||
# Calculate the expected output of the template compiler for every source in
|
||||
# in the library. Most of these will be produced as empty files but it is
|
||||
|
|
Loading…
Reference in New Issue