aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/cpu/ya.make
blob: 4a1e9c7ce6b67b27c6634568cad55fbe49c01562 (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
GO_LIBRARY()

LICENSE(BSD-3-Clause)

SRCS(
    byteorder.go
    cpu.go
    endian_little.go
    parse.go
    runtime_auxv.go
)

GO_TEST_SRCS(parse_test.go)

GO_XTEST_SRCS(
    cpu_test.go
    endian_test.go
)

IF (ARCH_X86_64)
    SRCS(
        cpu_gc_x86.go
        cpu_x86.go
        cpu_x86.s
    )
ENDIF()

IF (ARCH_ARM64)
    SRCS(
        cpu_arm64.go
        cpu_arm64.s
        cpu_gc_arm64.go
    )
ENDIF()

IF (OS_LINUX)
    SRCS(
        hwcap_linux.go
    )
ENDIF()

IF (OS_LINUX AND ARCH_X86_64)
    SRCS(
        cpu_linux_noinit.go
    )
ENDIF()

IF (OS_LINUX AND ARCH_ARM64)
    SRCS(
        cpu_linux_arm64.go
        proc_cpuinfo_linux.go
    )
ENDIF()

IF (OS_DARWIN AND ARCH_ARM64)
    SRCS(
        cpu_other_arm64.go
    )
ENDIF()

IF (OS_WINDOWS AND ARCH_ARM64)
    SRCS(
        cpu_other_arm64.go
    )
ENDIF()

END()

RECURSE(
    gotest
)