diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-19 11:21:30 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-01 15:51:13 -0300 |
commit | 968291927c5e54c190f60ae44f4af2effa6e9cf8 (patch) | |
tree | 2457b5aef31b44a0028a5a67e2116e6a20122057 /src | |
parent | 32cd4ad26913e31039618cb00519eac47586da7d (diff) | |
download | luarocks-968291927c5e54c190f60ae44f4af2effa6e9cf8.tar.gz luarocks-968291927c5e54c190f60ae44f4af2effa6e9cf8.tar.bz2 luarocks-968291927c5e54c190f60ae44f4af2effa6e9cf8.zip |
build: use cfg.is_platform()
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/build.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index 0cfbccd7..2d76ba05 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua | |||
@@ -98,7 +98,7 @@ local function check_macosx_deployment_target(rockspec) | |||
98 | rockspec.variables[var] = "env MACOSX_DEPLOYMENT_TARGET="..target.." "..rockspec.variables[var] | 98 | rockspec.variables[var] = "env MACOSX_DEPLOYMENT_TARGET="..target.." "..rockspec.variables[var] |
99 | end | 99 | end |
100 | end | 100 | end |
101 | if cfg.platforms.macosx and rockspec:format_is_at_least("3.0") and target then | 101 | if cfg.is_platform("macosx") and rockspec:format_is_at_least("3.0") and target then |
102 | local version = util.popen_read("sw_vers -productVersion") | 102 | local version = util.popen_read("sw_vers -productVersion") |
103 | local versionminor = minor(version) | 103 | local versionminor = minor(version) |
104 | local targetminor = minor(target) | 104 | local targetminor = minor(target) |