diff --git a/scripts/genie.lua b/scripts/genie.lua index bcc72e68b36..40e5d9e8c5a 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -724,7 +724,7 @@ else end local version = str_to_version(_OPTIONS["gcc_version"]) -if string.find(_OPTIONS["gcc"], "clang") and (version < 30500) then +if string.find(_OPTIONS["gcc"], "clang") and ((version < 30500) or (_OPTIONS["targetos"]=="macosx" and (version <= 30500))) then buildoptions_cpp { "-x c++", "-std=c++1y",