mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Merge pull request #12661 from Slyce-Inc:fix-xcode10-bitcode
This commit is contained in:
commit
8ecdd215b6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user