diff options
| author | ruki <[email protected]> | 2015-05-21 10:10:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-05-21 10:10:24 +0800 |
| commit | 24e6b488718dab5dc58a7b4adc901884d716f478 (patch) | |
| tree | a3963cc0d8ee123de1fcaacf9354e996401b06c3 /xmake/scripts/base/config.lua | |
| parent | 111bd8e8cbf0c3b242ed3b137415d9560c4aac37 (diff) | |
list plats and archs for options
Diffstat (limited to 'xmake/scripts/base/config.lua')
| -rw-r--r-- | xmake/scripts/base/config.lua | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/xmake/scripts/base/config.lua b/xmake/scripts/base/config.lua index d2ffc546b..ca6420e81 100644 --- a/xmake/scripts/base/config.lua +++ b/xmake/scripts/base/config.lua @@ -29,22 +29,6 @@ local utils = require("base/utils") local option = require("base/option") local preprocessor = require("base/preprocessor") --- make the automatic configure -function config._auto(name) - - -- get platform or host - if name == "plat" or name == "host" then - return xmake._HOST - -- get architecture - elseif name == "arch" then - return xmake._ARCH - end - - -- unknown - utils.error("unknown config: %s", name) - return "unknown" -end - -- save object with the level function config._save_with_level(file, object, level) @@ -332,12 +316,7 @@ function config.loadxconf() -- save the default option to the target if not target[k] then - - if v == "auto" then - target[k] = config._auto(k) - else - target[k] = v - end + target[k] = v end end end |
