Skip to content

Commit

Permalink
Consistenly avoid include path stripping to remove some of the dimens…
Browse files Browse the repository at this point in the history
…ions in debugging build errors with TensorFlow Makefiles.

PiperOrigin-RevId: 314779720
  • Loading branch information
bjacob authored and copybara-github committed Jun 4, 2020
1 parent 9a8d8f9 commit d4ddc05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ruy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ cc_library(
] + select({
":ppc": [],
":fuchsia": [],
"//conditions:default": ["@cpuinfo"],
"//conditions:default": ["@cpuinfo//:cpuinfo_with_unstripped_include_path"],
}),
)

Expand Down
2 changes: 1 addition & 1 deletion ruy/cpuinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define RUY_HAVE_CPUINFO (!(RUY_PLATFORM_PPC || RUY_PLATFORM_FUCHSIA))

#if RUY_HAVE_CPUINFO
#include <cpuinfo.h>
#include "include/cpuinfo.h"
#endif

namespace ruy {
Expand Down
10 changes: 10 additions & 0 deletions third_party/cpuinfo.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@ cc_library(
],
)

cc_library(
name = "cpuinfo_with_unstripped_include_path",
hdrs = [
"include/cpuinfo.h",
],
deps = [
":cpuinfo_impl",
],
)

############################# Build configurations #############################

config_setting(
Expand Down

0 comments on commit d4ddc05

Please sign in to comment.