-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move fp16 dependency to Bazel & patch v8
- Loading branch information
1 parent
0842e5e
commit f1d81e2
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
patches/v8/0016-Modify-where-to-look-for-fp16-dependency.-This-depen.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 76d8cc9d39d0798155d0a7df176b9d3a1bdb7a55 Mon Sep 17 00:00:00 2001 | ||
From: Garrett Gu <[email protected]> | ||
Date: Mon, 22 Apr 2024 10:10:21 -0500 | ||
Subject: =?UTF-8?q?Modify=20where=20to=20look=20for=20fp16=20dependency.?= | ||
=?UTF-8?q?=20This=20dependency=20is=20normally=20downloaded=20by=20gn=20b?= | ||
=?UTF-8?q?ut=20we=0Aneed=20to=20fetch=20it=20in=20Bazel.=20We=20do=20so?= | ||
=?UTF-8?q?=20in=20the=20workerd=20repo=20in=20the=20WORKSPACE=20file.?= | ||
|
||
|
||
diff --git a/BUILD.bazel b/BUILD.bazel | ||
index f3e7958b39e5b7e42b06fad83a0bf6f7352ffd3c..acc8d6a9ed050ad95e799892a9df4be47203657b 100644 | ||
--- a/BUILD.bazel | ||
+++ b/BUILD.bazel | ||
@@ -3691,13 +3691,12 @@ filegroup( | ||
|
||
v8_library( | ||
name = "lib_fp16", | ||
- srcs = ["third_party/fp16/src/include/fp16.h"], | ||
hdrs = [ | ||
- "third_party/fp16/src/include/fp16/fp16.h", | ||
- "third_party/fp16/src/include/fp16/bitcasts.h", | ||
+ "@fp16//:src/include/fp16/fp16.h", | ||
+ "@fp16//:src/include/fp16/bitcasts.h", | ||
], | ||
includes = [ | ||
- "third_party/fp16/src/include", | ||
+ "@fp16//:src/include", | ||
], | ||
) | ||
|