Move location of generated logs and scripts (#503)
* Don't include log files in default outputs * Remove logs from install directory * Rename directory for build script output
This commit is contained in:
parent
689c96aaa7
commit
3be0d3b94e
|
@ -416,7 +416,7 @@ def cc_external_rule_impl(ctx, attrs):
|
|||
output_groups[attrs.configure_name + "_logs"] = wrapped_files
|
||||
return [
|
||||
DefaultInfo(
|
||||
files = depset(direct = rule_outputs + wrapped_files),
|
||||
files = depset(direct = rule_outputs),
|
||||
runfiles = runfiles,
|
||||
),
|
||||
OutputGroupInfo(**output_groups),
|
||||
|
@ -443,13 +443,13 @@ WrappedOutputs = provider(
|
|||
|
||||
# buildifier: disable=function-docstring
|
||||
def wrap_outputs(ctx, lib_name, configure_name, script_text):
|
||||
build_script_file = ctx.actions.declare_file("{}/logs/{}_script.sh".format(lib_name, configure_name))
|
||||
build_script_file = ctx.actions.declare_file("{}_scripts/{}_script.sh".format(lib_name, configure_name))
|
||||
ctx.actions.write(
|
||||
output = build_script_file,
|
||||
content = script_text,
|
||||
is_executable = True,
|
||||
)
|
||||
build_log_file = ctx.actions.declare_file("{}/logs/{}.log".format(lib_name, configure_name))
|
||||
build_log_file = ctx.actions.declare_file("{}_logs/{}.log".format(lib_name, configure_name))
|
||||
|
||||
cleanup_on_success_function = create_function(
|
||||
ctx,
|
||||
|
|
Loading…
Reference in New Issue