forked from modular/modular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
42 lines (38 loc) · 958 Bytes
/
BUILD.bazel
File metadata and controls
42 lines (38 loc) · 958 Bytes
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
load("//bazel:api.bzl", "modular_py_binary", "modular_run_binary_test")
modular_py_binary(
name = "hello",
srcs = ["hello.py"],
data = ["hello_mojo.mojo"],
target_compatible_with = select({
"//:asan": ["@platforms//:incompatible"],
"//:ubsan": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
use_sitecustomize = True,
deps = [
"//SDK/lib/API/python/max/mojo",
],
)
modular_py_binary(
name = "mandelbrot",
srcs = ["mandelbrot.py"],
data = ["mandelbrot_mojo.mojo"],
mojo_deps = [
"@mojo//:layout",
],
target_compatible_with = ["//:has_gpu"],
use_sitecustomize = True,
deps = [
"//SDK/lib/API/python/max/mojo",
],
)
modular_run_binary_test(
name = "hello_test",
binary = "hello",
external_noop = True,
)
modular_run_binary_test(
name = "mandelbrot_test",
binary = "mandelbrot",
external_noop = True,
)