Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions source/backends/x86_64.d
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ class BackendX86_64 : CompilerBackend {

if (os == "osx") {
linkCommand ~= " -platform_version macos 10.6 `xcrun --sdk macosx --show-sdk-version`";
linkCommand ~= " -ld_classic -no_pie -e _main";
linkCommand ~= " -lSystem -syslibroot `xcrun --sdk macosx --show-sdk-path`";
}

Expand Down Expand Up @@ -497,7 +496,7 @@ class BackendX86_64 : CompilerBackend {
}

// create array source
output ~= format("%ssection .text\n", useGas? "." : "");
output ~= format("%ssection .data\n", useGas? "." : "");
foreach (i, ref array ; arrays) {
output ~= format("__array_src_%d: ", i);

Expand Down