cpu.lua 689 Bytes
Newer Older
PanZezhongQY's avatar
PanZezhongQY committed
1
2
3
4
target("infiniop-cpu")
    on_install(function (target) end)
    set_kind("static")

5
    set_warnings("all", "error")
6

PanZezhongQY's avatar
PanZezhongQY committed
7
8
9
10
11
12
13
14
15
16
    if not is_plat("windows") then
        add_cxflags("-fPIC")
    end

    set_languages("cxx17")
    add_files("../src/infiniop/devices/cpu/*.cc", "../src/infiniop/ops/*/cpu/*.cc")
    if has_config("omp") then
        add_cxflags("-fopenmp")
        add_ldflags("-fopenmp")
    end
17
target_end()
18
19
20
21
22
23
24
25
26
27
28
29
30
31

target("infinirt-cpu")
on_install(function (target) end)
    set_kind("static")

    set_warnings("all", "error")

    if not is_plat("windows") then
        add_cxflags("-fPIC")
    end

    set_languages("cxx17")
    add_files("../src/infinirt/cpu/*.cc")
target_end()