summaryrefslogtreecommitdiff
path: root/xmake/core/project/option.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-26 22:26:33 +0800
committerruki <[email protected]>2017-06-26 22:26:33 +0800
commit08423656d08715670959b69c64957e9e9b1b3db1 (patch)
tree8739a1ef0ed686ab83239910681b70c0dea858ad /xmake/core/project/option.lua
parentf57db3954d227c29d15b68316e9b18838a55c3d4 (diff)
modify compiler and linker args
Diffstat (limited to 'xmake/core/project/option.lua')
-rw-r--r--xmake/core/project/option.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua
index 72cc0d750..403945f97 100644
--- a/xmake/core/project/option.lua
+++ b/xmake/core/project/option.lua
@@ -70,7 +70,7 @@ function option:_check_link(sourcefile, objectfile, targetfile)
end
-- attempt to link it
- return instance:link(objectfile, targetfile, self)
+ return instance:link(objectfile, targetfile, {target = self})
end
-- check include
@@ -106,7 +106,7 @@ function option:_check_include(include, srcpath, objpath)
end
-- attempt to compile it
- return instance:compile(srcpath, objpath, nil, self)
+ return instance:compile(srcpath, objpath, {target = self})
end
-- check function
@@ -157,7 +157,7 @@ function option:_check_function(checkcode, srcpath, objpath)
srcfile:close()
-- attempt to compile it
- return instance:compile(srcpath, objpath, nil, self)
+ return instance:compile(srcpath, objpath, {target = self})
end
-- check type
@@ -208,7 +208,7 @@ function option:_check_type(typename, srcpath, objpath)
srcfile:close()
-- attempt to compile it
- return instance:compile(srcpath, objpath, nil, self)
+ return instance:compile(srcpath, objpath, {target = self})
end
-- check snippet
@@ -232,7 +232,7 @@ function option:_check_snippet(snippet, srcpath, objpath)
end
-- attempt to compile it
- return instance:compile(srcpath, objpath, nil, self)
+ return instance:compile(srcpath, objpath, {target = self})
end
-- check option for checking links