Skip to content

Commit 8e97a6d

Browse files
authored
Remove extra flags for SwiftPM builds (#156)
Due to SwiftPM improvements we no longer need to manually specify these flags when building Embedded Swift code. Fixes #128
1 parent 0013044 commit 8e97a6d

File tree

12 files changed

+12
-23
lines changed

12 files changed

+12
-23
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
main-snapshot-2025-06-01
1+
main-snapshot-2025-06-01

Tools/Toolsets/pico.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"-segaddr", "__RESET", "0x20000000",
1919
"-segaddr", "__VECTORS", "0x20000100",
2020
"-seg1addr", "0x20000200",
21-
"-pagezero_size", "0",
22-
"-allow_dead_duplicates"
21+
"-pagezero_size", "0"
2322
]
2423
}
2524
}

Tools/Toolsets/pico2.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"-segaddr", "__VECTORS", "0x20000000",
1818
"-segaddr", "__RESET", "0x20000200",
1919
"-seg1addr", "0x20000300",
20-
"-pagezero_size", "0",
21-
"-allow_dead_duplicates"
20+
"-pagezero_size", "0"
2221
]
2322
}
2423
}

Tools/Toolsets/stm32f74x-lcd.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"-segalign", "4",
1717
"-segaddr", "__VECTORS", "0x00200000",
1818
"-seg1addr", "0x00200200",
19-
"-pagezero_size", "0",
20-
"-allow_dead_duplicates"
19+
"-pagezero_size", "0"
2120
]
2221
}
2322
}

Tools/Toolsets/stm32f74x.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"-segalign", "4",
1717
"-segaddr", "__VECTORS", "0x20010000",
1818
"-seg1addr", "0x20010200",
19-
"-pagezero_size", "0",
20-
"-allow_dead_duplicates"
19+
"-pagezero_size", "0"
2120
]
2221
}
2322
}

rpi-4b-blink/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ TARGET := $(ARCH)-none-none-elf
2222
SWIFT_BUILD_ARGS := \
2323
--configuration release \
2424
--triple $(TARGET) \
25-
--toolset $(TOOLSET) \
26-
--disable-local-rpath
25+
--toolset $(TOOLSET)
2726
BUILDROOT := $(shell $(SWIFT_BUILD) $(SWIFT_BUILD_ARGS) --show-bin-path)
2827

2928
.PHONY: build

rpi-5-blink/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ TARGET := $(ARCH)-none-none-elf
2222
SWIFT_BUILD_ARGS := \
2323
--configuration release \
2424
--triple $(TARGET) \
25-
--toolset $(TOOLSET) \
26-
--disable-local-rpath
25+
--toolset $(TOOLSET)
2726
BUILDROOT := $(shell $(SWIFT_BUILD) $(SWIFT_BUILD_ARGS) --show-bin-path)
2827

2928
.PHONY: build

rpi-pico-blink/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ TARGET := $(ARCH)-apple-none-macho
2323
SWIFT_BUILD_ARGS := \
2424
--configuration release \
2525
--triple $(TARGET) \
26-
--toolset $(TOOLSET) \
27-
--disable-local-rpath
26+
--toolset $(TOOLSET)
2827
BUILDROOT := $(shell $(SWIFT_BUILD) $(SWIFT_BUILD_ARGS) --show-bin-path)
2928

3029
.PHONY: build

rpi-pico2-neopixel/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ TARGET := $(ARCH)-apple-none-macho
2222
SWIFT_BUILD_ARGS := \
2323
--configuration release \
2424
--triple $(TARGET) \
25-
--toolset $(TOOLSET) \
26-
--disable-local-rpath
25+
--toolset $(TOOLSET)
2726
BUILDROOT := $(shell $(SWIFT_BUILD) $(SWIFT_BUILD_ARGS) --show-bin-path)
2827

2928
.PHONY: build

stm32-lcd-logo/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ TARGET := $(ARCH)-apple-none-macho
2222
SWIFT_BUILD_ARGS := \
2323
--configuration release \
2424
--triple $(TARGET) \
25-
--toolset $(TOOLSET) \
26-
--disable-local-rpath
25+
--toolset $(TOOLSET)
2726
BUILDROOT := $(shell $(SWIFT_BUILD) $(SWIFT_BUILD_ARGS) --show-bin-path)
2827

2928
.PHONY: build

0 commit comments

Comments
 (0)