Skip to content

Commit

Permalink
quickjs-ng: simplify if statement for m library link
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Jan 19, 2025
1 parent d4d77b5 commit 4aed3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/q/quickjs-ng/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ package("quickjs-ng")
io.replace("quickjs-libc.c", " defined(__wasi__)", " (defined(__wasi__) || defined(EMSCRIPTEN))", {plain = true})
io.replace("quickjs-libc.c", " !defined(__wasi__)", " (!defined(__wasi__) && !defined(EMSCRIPTEN))", {plain = true})
end
if package:is_plat("cross") or (package:is_plat("linux") and package:is_arch("arm64", "arm64-v8a")) then
io.replace("CMakeLists.txt", "M_LIBRARIES OR CMAKE_C_COMPILER_ID STREQUAL \"TinyCC\"", "1", {plain = true}) -- m link
if package:is_plat("linux", "bsd", "cross") then
io.replace("CMakeLists.txt", "M_LIBRARIES OR CMAKE_C_COMPILER_ID STREQUAL \"TinyCC\"", "1", {plain = true}) -- m library link
end
import("package.tools.cmake").install(package, configs)

Expand Down

0 comments on commit 4aed3db

Please sign in to comment.