From aaf4661bee3ded0ce827ec964870d37fe1bf7a51 Mon Sep 17 00:00:00 2001 From: "ryan.park" Date: Fri, 28 Jul 2023 07:54:31 +0900 Subject: [PATCH] Modify to handle symplink as well as file * The current source causes problems when building `sv-parser` on bazel build system * because bazel creates the working directory for the build as a symlink --- sv-parser-syntaxtree/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv-parser-syntaxtree/build.rs b/sv-parser-syntaxtree/build.rs index 14ec51b..1b5e043 100644 --- a/sv-parser-syntaxtree/build.rs +++ b/sv-parser-syntaxtree/build.rs @@ -65,7 +65,7 @@ fn main() { for entry in WalkDir::new("src") { let entry = entry.unwrap(); - if entry.file_type().is_file() { + if entry.path().is_file() { let f = File::open(entry.path()).unwrap(); let f = BufReader::new(f); let mut hit_node = false;