Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Hunger
qt-creator
Commits
08423ddd
Commit
08423ddd
authored
Mar 28, 2011
by
Tobias Hunger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abi: Make *-linux-generic-* compatible with *-linux-*
parent
38326a28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
src/plugins/projectexplorer/abi.cpp
src/plugins/projectexplorer/abi.cpp
+14
-5
No files found.
src/plugins/projectexplorer/abi.cpp
View file @
08423ddd
...
...
@@ -351,11 +351,20 @@ bool Abi::operator == (const Abi &other) const
bool
Abi
::
isCompatibleWith
(
const
Abi
&
other
)
const
{
return
(
architecture
()
==
other
.
architecture
()
||
other
.
architecture
()
==
Abi
::
UnknownArchitecture
)
&&
(
os
()
==
other
.
os
()
||
other
.
os
()
==
Abi
::
UnknownOS
)
&&
(
osFlavor
()
==
other
.
osFlavor
()
||
other
.
osFlavor
()
==
Abi
::
UnknownFlavor
)
&&
(
binaryFormat
()
==
other
.
binaryFormat
()
||
other
.
binaryFormat
()
==
Abi
::
UnknownFormat
)
&&
((
wordWidth
()
==
other
.
wordWidth
()
&&
wordWidth
()
!=
0
)
||
other
.
wordWidth
()
==
0
);
bool
isCompat
=
(
architecture
()
==
other
.
architecture
()
||
other
.
architecture
()
==
Abi
::
UnknownArchitecture
)
&&
(
os
()
==
other
.
os
()
||
other
.
os
()
==
Abi
::
UnknownOS
)
&&
(
osFlavor
()
==
other
.
osFlavor
()
||
other
.
osFlavor
()
==
Abi
::
UnknownFlavor
)
&&
(
binaryFormat
()
==
other
.
binaryFormat
()
||
other
.
binaryFormat
()
==
Abi
::
UnknownFormat
)
&&
((
wordWidth
()
==
other
.
wordWidth
()
&&
wordWidth
()
!=
0
)
||
other
.
wordWidth
()
==
0
);
// *-linux-generic-* is compatible with *-linux-*:
if
(
!
isCompat
&&
architecture
()
==
other
.
architecture
()
&&
os
()
==
other
.
os
()
&&
osFlavor
()
==
GenericLinuxFlavor
&&
other
.
os
()
==
LinuxOS
&&
binaryFormat
()
==
other
.
binaryFormat
()
&&
wordWidth
()
==
other
.
wordWidth
())
isCompat
=
true
;
return
isCompat
;
}
bool
Abi
::
isValid
()
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment