summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-08 19:09:51 +0800
committerruki <[email protected]>2015-12-08 19:09:51 +0800
commit5fc652aeba3000759914f54286048c239972ac07 (patch)
tree07ab3910c01bafab7a5071baf4f9bb026add04f2 /xmake/scripts/base/project.lua
parent119f3d4d895419eb905c1637b88c295f3144ceab (diff)
add ldflags for compiler
Diffstat (limited to 'xmake/scripts/base/project.lua')
-rw-r--r--xmake/scripts/base/project.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua
index 74128be9d..c9d7bd9b3 100644
--- a/xmake/scripts/base/project.lua
+++ b/xmake/scripts/base/project.lua
@@ -671,7 +671,7 @@ function project._make_option_for_checking_links(opt, links, cfile, objectfile,
local ok = compiler.check_include(opt, nil, cfile, objectfile)
-- check link
- if ok then ok = linker.check_links(opt, links, objectfile, targetfile) end
+ if ok then ok = linker.check_links(opt, links, cfile, objectfile, targetfile) end
-- trace
utils.verbose("checking for the links %s ... %s", links_str, utils.ifelse(ok, "ok", "no"))
@@ -747,7 +747,7 @@ function project._make_option_for_checking_cfuncs(opt, cfuncs, cfile, objectfile
local ok = compiler.check_function(opt, cfunc, cfile, objectfile)
-- check link
- if ok and opt.links then ok = linker.check_links(opt, opt.links, objectfile, targetfile) end
+ if ok and opt.links then ok = linker.check_links(opt, opt.links, cfile, objectfile, targetfile) end
-- trace
utils.verbose("checking for the c function %s ... %s", cfunc, utils.ifelse(ok, "ok", "no"))
@@ -770,7 +770,7 @@ function project._make_option_for_checking_cxxfuncs(opt, cxxfuncs, cxxfile, obje
local ok = compiler.check_function(opt, cxxfunc, cxxfile, objectfile)
-- check link
- if ok and opt.links then ok = linker.check_links(opt, opt.links, objectfile, targetfile) end
+ if ok and opt.links then ok = linker.check_links(opt, opt.links, cxxfile, objectfile, targetfile) end
-- trace
utils.verbose("checking for the c++ function %s ... %s", cxxfunc, utils.ifelse(ok, "ok", "no"))