|
1 | 1 | # File src/library/tools/R/sotools.R |
2 | 2 | # Part of the R package, https://www.R-project.org |
3 | 3 | # |
4 | | -# Copyright (C) 2011-2024 The R Core Team |
| 4 | +# Copyright (C) 2011-2025 The R Core Team |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify |
7 | 7 | # it under the terms of the GNU General Public License as published by |
@@ -49,7 +49,12 @@ if(.Platform$OS.type == "windows") { |
49 | 49 | l2 <- grep("^The Export Tables", s0) |
50 | 50 | if (!length(l1) || !length(l2)) return() |
51 | 51 | s1 <- s0[(l1[1L] + 2L):(l2 - 4L)] |
52 | | - s2 <- grep("\t[0-9a-f]+\t +[0-9]+", s1, value = TRUE) |
| 52 | + |
| 53 | + # The format of the dump of import tables changed in Rtools45 |
| 54 | + # (binutils 2.43.1). Previously, there was a joint column |
| 55 | + # "Hint/Ord". Newly these are split ("Ordinal" and "Hint"). The |
| 56 | + # regex below has been relaxed to match both. |
| 57 | + s2 <- grep("\t[0-9a-f]+[\t ]+", s1, value = TRUE) |
53 | 58 | sub(".* ([_A-Za-z0-9]+)$", "\\1", s2) |
54 | 59 | } |
55 | 60 | } |
@@ -1049,16 +1054,9 @@ function(x, ...) |
1049 | 1054 | function(file = "symbols.rds") |
1050 | 1055 | { |
1051 | 1056 | args <- commandArgs(trailingOnly = TRUE) |
1052 | | - ## <FIXME WINDOWS> |
1053 | | - if(.Platform$OS.type != "windows") { |
1054 | | - pos <- which(args == "--pkglibs")[1L] |
1055 | | - objects <- args[seq_len(pos - 1L)] |
1056 | | - pkglibs <- args[-seq_len(pos)] |
1057 | | - } else { |
1058 | | - objects <- args |
1059 | | - pkglibs <- character() |
1060 | | - } |
1061 | | - ## </FIXME> |
| 1057 | + pos <- which(args == "--pkglibs")[1L] |
| 1058 | + objects <- args[seq_len(pos - 1L)] |
| 1059 | + pkglibs <- args[-seq_len(pos)] |
1062 | 1060 | ## Also determine the local static libraries linked against by |
1063 | 1061 | ## following the approach suggested in section "Compiling in |
1064 | 1062 | ## sub-directories" of WRE. |
|
0 commit comments