Skip to content

Commit

Permalink
fixup option
Browse files Browse the repository at this point in the history
  • Loading branch information
luadebug committed Dec 27, 2024
1 parent f6520d5 commit cde87ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions packages/p/pffft/port/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
add_rules("mode.debug", "mode.release")

option("simd")
set_default(false)
set_description("Build without SIMD support.")
add_defines("PFFFT_SIMD_DISABLE")

target("pffft")
set_kind("$(kind)")
add_options("nosimd")
if is_kind("shared") then
if not has_config("simd") then
add_defines("PFFFT_SIMD_DISABLE")
end
if is_kind("shared") and is_plat("windows") then
add_rules("utils.symbols.export_all")
end
add_files("fftpack.c", "pffft.c")
Expand Down
2 changes: 1 addition & 1 deletion packages/p/pffft/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package("pffft")

add_urls("https://bitbucket.org/jpommier/pffft.git")

add_configs("simd", {description = "Build without SIMD support.", default = true, type = "boolean"})
add_configs("simd", {description = "Build with SIMD support.", default = true, type = "boolean"})

if not is_plat("windows") then
add_syslinks("m")
Expand Down

0 comments on commit cde87ae

Please sign in to comment.