Makefile: add internal/trace to noinst_DATA
The internal/trace package is only imported by tests (specifically the
tests in runtime/trace) so it must be in noinst_DATA to ensure that it
is built before running the tests.
This was mostly working because internal/trace has tests itself, and
is listed in check-packages.txt before runtime/trace, so typical
invocations of make would build internal/trace for checking purposes
before checking runtime/trace. But we need this change to make that
reliable.
Change-Id: I315ec3f7b47f00e62d06dbc1ecfbb96ebeb0f631
Reviewed-on: https://go-review.googlesource.com/99836
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/Makefile.am b/libgo/Makefile.am
index 8e749b2..8cfcda0 100644
--- a/libgo/Makefile.am
+++ b/libgo/Makefile.am
@@ -397,6 +397,7 @@
golang_org/x/net/internal/nettest.gox \
golang_org/x/net/nettest.gox \
internal/testenv.gox \
+ internal/trace.gox \
net/internal/socktest.gox \
os/signal/internal/pty.gox
diff --git a/libgo/Makefile.in b/libgo/Makefile.in
index 794f064..5f5be63 100644
--- a/libgo/Makefile.in
+++ b/libgo/Makefile.in
@@ -757,8 +757,8 @@
# Force them to be built.
noinst_DATA = golang_org/x/net/internal/nettest.gox \
golang_org/x/net/nettest.gox internal/testenv.gox \
- net/internal/socktest.gox os/signal/internal/pty.gox \
- zstdpkglist.go zdefaultcc.go
+ internal/trace.gox net/internal/socktest.gox \
+ os/signal/internal/pty.gox zstdpkglist.go zdefaultcc.go
@LIBGO_IS_RTEMS_FALSE@rtems_task_variable_add_file =
@LIBGO_IS_RTEMS_TRUE@rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
@LIBGO_IS_AIX_FALSE@@LIBGO_IS_DARWIN_FALSE@@LIBGO_IS_FREEBSD_FALSE@@LIBGO_IS_IRIX_FALSE@@LIBGO_IS_LINUX_FALSE@@LIBGO_IS_NETBSD_FALSE@@LIBGO_IS_SOLARIS_FALSE@runtime_getncpu_file = runtime/getncpu-none.c