summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-01-15 04:21:56 -0800
committerJoshua Haberman <jhaberman@gmail.com>2019-01-15 04:21:56 -0800
commit1508648f30cbaf5a3590572b2313fb5b595a7946 (patch)
treec153db730ec3571981c7b1630ac724a5fef59b70 /BUILD
parent754b9f1cfdf59104fa62cfaf99f21e5a817d281b (diff)
Build & fix the JIT.
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD20
1 files changed, 18 insertions, 2 deletions
diff --git a/BUILD b/BUILD
index 9e79d95..5804d36 100644
--- a/BUILD
+++ b/BUILD
@@ -11,6 +11,11 @@ load(
"upb_proto_reflection_library",
)
+config_setting(
+ name = "k8",
+ values = {"cpu": "k8"},
+)
+
# C/C++ rules ##################################################################
cc_library(
@@ -62,7 +67,15 @@ cc_library(
"upb/pb/textprinter.c",
"upb/pb/varint.c",
"upb/pb/varint.int.h",
- ],
+ ] + select({
+ ":k8": [
+ "upb/pb/compile_decoder_x64.c",
+ "upb/pb/compile_decoder_x64.h",
+ "third_party/dynasm/dasm_proto.h",
+ "third_party/dynasm/dasm_x86.h",
+ ],
+ "//conditions:default": [],
+ }),
hdrs = [
"upb/pb/decoder.h",
"upb/pb/encoder.h",
@@ -72,7 +85,10 @@ cc_library(
"-std=c89",
"-pedantic",
"-Wno-long-long",
- ],
+ ] + select({
+ ":k8": ["-DUPB_USE_JIT_X64"],
+ "//conditions:default": [],
+ }),
deps = [
":upb",
],
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback