aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2024-04-01 20:47:25 +0100
committerIain Sandoe <iain@sandoe.co.uk>2024-04-02 12:24:31 +0100
commit451bb0b9262d2f54173937569a29d7f1ad234e30 (patch)
tree3d7f6e96a7ed47cc7d8bdeeda6fb24b8965e1957
parent3c499f8f6f7d19b21d7047efabbe6396ee1c2cac (diff)
downloadgcc-451bb0b9262d2f54173937569a29d7f1ad234e30.zip
gcc-451bb0b9262d2f54173937569a29d7f1ad234e30.tar.gz
gcc-451bb0b9262d2f54173937569a29d7f1ad234e30.tar.bz2
Darwin: Correct a version check.
When the version for dsymutil comes from a clang build, it is of the form NNmm.pp.qq where NN and mm are the major and minor LLVM version components. We need to check for a major version greater than or equal to 7 - so use 700 in the check. gcc/ChangeLog: * config/darwin.cc (darwin_override_options): Update the clang major version value in the dsymutil check. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
-rw-r--r--gcc/config/darwin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/darwin.cc b/gcc/config/darwin.cc
index c37a1a4..63b8c50 100644
--- a/gcc/config/darwin.cc
+++ b/gcc/config/darwin.cc
@@ -3420,7 +3420,7 @@ darwin_override_options (void)
/* External toolchains based on LLVM or clang 7+ have support for
dwarf-4. */
if ((dsymutil_version.kind == LLVM && dsymutil_version.major >= 7)
- || (dsymutil_version.kind == CLANG && dsymutil_version.major >= 7))
+ || (dsymutil_version.kind == CLANG && dsymutil_version.major >= 700))
dwarf_version = 4;
else if (dsymutil_version.kind == DWARFUTILS
&& dsymutil_version.major >= 121)