diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-02-03 14:59:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-03 14:59:53 -0500 |
| commit | add95b14f74e6dbe04a6efe98ff0f20424930b73 (patch) | |
| tree | 13ce413ee4190a4c8f8743c7740aaa8d04353f14 /willow/tools/willowc/BUILD.bazel | |
| parent | c5b2905c5a64433f8519531a77d3acc42d881f17 (diff) | |
| download | compiler-dev/stefan.tar.gz | |
[willow]: initial frontend work, unit tests (#8)dev/stefan
Diffstat (limited to 'willow/tools/willowc/BUILD.bazel')
| -rw-r--r-- | willow/tools/willowc/BUILD.bazel | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/willow/tools/willowc/BUILD.bazel b/willow/tools/willowc/BUILD.bazel index e69de29..708de13 100644 --- a/willow/tools/willowc/BUILD.bazel +++ b/willow/tools/willowc/BUILD.bazel @@ -0,0 +1,27 @@ +load("@rules_cc//cc:defs.bzl", "cc_library", "cc_binary") + +cc_library( + name = "willowc_lib", + srcs = glob([ + "lib/*.cpp", + ]), + hdrs = glob([ + "include/*.hpp", + ]), + copts = [ + "-std=c++23", + "-Wall", + ], + deps = ["//willow"], + strip_include_prefix = "include", + visibility = ["//visibility:public"], +) + +cc_binary( + name = "willowc", + srcs = [ + "main.cpp", + ], + deps = [":willowc_lib"], + visibility = ["//visibility:public"], +) |