We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dca83ce commit a71a7b7Copy full SHA for a71a7b7
1 file changed
tools/scripts/rules/rt.cpp.lua
@@ -23,11 +23,17 @@
23
rule("rt.cpp")
24
do
25
on_config(function(target)
26
+ import("core.project.config")
27
import("rt.private.build.rtflags")
- local flags = rtflags.get_sdk()
28
29
+ local flags = rtflags.get_sdk()
30
local cxx, _ = target:tool("cxx")
31
target:set("toolset", "ld", cxx)
32
+
33
+ if config.get("target_os") ~= "rt-smart" then
34
+ return
35
+ end
36
37
target:add("ldflags", flags.ldflags_lib, {force = true})
38
target:add("ldflags", "-lcxx", {force = true})
39
end)
0 commit comments