-
Notifications
You must be signed in to change notification settings - Fork 11
/
perf_data_converter.patch
62 lines (59 loc) · 1.29 KB
/
perf_data_converter.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff --git a/elfutils.BUILD b/elfutils.BUILD
new file mode 100644
index 0000000..b69293f
--- /dev/null
+++ b/elfutils.BUILD
@@ -0,0 +1,22 @@
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
+
+filegroup(
+ name = "all_files",
+ srcs = glob(["**"]),
+)
+
+configure_make(
+ name = "libelf",
+ configure_options = [
+ "--disable-debuginfod",
+ "--disable-libdebuginfod",
+ ],
+ lib_source = ":all_files",
+ out_binaries = ["libelf"],
+ targets = [
+ "PREFIX=$$INSTALLDIR$$ " +
+ "WARNINGS=\"-Wall\" " +
+ "install",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/src/quipper/BUILD b/src/quipper/BUILD
index b15eb00..9a2af64 100644
--- a/src/quipper/BUILD
+++ b/src/quipper/BUILD
@@ -114,8 +114,8 @@ cc_library(
":data_reader",
":file_reader",
":base",
+ "@elfutils//:libelf",
],
- linkopts = ["-lelf"],
)
cc_library(
@@ -126,8 +126,8 @@ cc_library(
deps = [
":binary_data_utils",
":base",
+ "@elfutils//:libelf",
],
- linkopts = ["-lelf"],
)
cc_library(
@@ -605,8 +605,8 @@ cc_test(
":scoped_temp_path",
":test_runner",
":base",
+ "@elfutils//:libelf",
],
- linkopts = ["-lelf"],
)
cc_test(