Commit 8ecdd215 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #12661 from Slyce-Inc:fix-xcode10-bitcode

parents 5a3bca8d 3c5a6be8
......@@ -39,10 +39,11 @@ def execute(cmd, cwd = None):
def getXCodeMajor():
ret = check_output(["xcodebuild", "-version"])
m = re.match(r'XCode\s+(\d)\..*', ret, flags=re.IGNORECASE)
m = re.match(r'Xcode\s+(\d+)\..*', ret, flags=re.IGNORECASE)
if m:
return int(m.group(1))
return 0
else:
raise Exception("Failed to parse Xcode version")
class Builder:
def __init__(self, opencv, contrib, dynamic, bitcodedisabled, exclude, targets):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment