forked from OSchip/llvm-project
[Basic] Transition getEnvironmentVersion from getOSVersion for android
'android' occupies the environment component of the triple. Let's use getEnvironmentVersion to extract it instead of getOSVersion. llvm-svn: 238797
This commit is contained in:
parent
aac4ea0123
commit
5c2589a50b
|
@ -389,7 +389,7 @@ protected:
|
|||
if (Triple.getEnvironment() == llvm::Triple::Android) {
|
||||
Builder.defineMacro("__ANDROID__", "1");
|
||||
unsigned Maj, Min, Rev;
|
||||
Triple.getOSVersion(Maj, Min, Rev);
|
||||
Triple.getEnvironmentVersion(Maj, Min, Rev);
|
||||
this->PlatformName = "android";
|
||||
this->PlatformMinVersion = VersionTuple(Maj, Min, Rev);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue