Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 9.2 -std=c++17, MACOSX_DEPLOYMENT_TARGET #1003

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/xcode/xcode_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,11 @@
if family then
settings['TARGETED_DEVICE_FAMILY'] = family
end
else
local minOSVersion = project.systemversion(cfg)
if minOSVersion ~= nil then
settings['MACOSX_DEPLOYMENT_TARGET'] = minOSVersion
end
end

--ms not by default ...add it manually if you need it
Expand Down Expand Up @@ -1011,7 +1016,7 @@
["C++98"] = "c++98",
["C++11"] = "c++0x", -- Xcode project GUI uses c++0x, but c++11 also works
["C++14"] = "c++14",
["C++17"] = "c++1z",
["C++17"] = "c++17",
["gnu++98"] = "gnu++98",
["gnu++11"] = "gnu++0x", -- Xcode project GUI uses gnu++0x, but gnu++11 also works
["gnu++14"] = "gnu++14",
Expand Down