Skip to content
Closed
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ build() {
if [ "$OS_NAME" != "windows" ]; then
source ~/dlang/*/activate # activate host compiler, incl. setting `DMD`
fi
$DMD compiler/src/build.d -ofgenerated/build
BUILD_DFLAGS=
if [ "$OS_NAME" == "osx" ]; then
BUILD_DFLAGS="-L-ld_classic"
CI_DFLAGS="$CI_DFLAGS $BUILD_DFLAGS"
fi
$DMD compiler/src/build.d -ofgenerated/build $BUILD_DFLAGS
generated/build -j$N MODEL=$MODEL HOST_DMD=$DMD DFLAGS="$CI_DFLAGS" BUILD=debug unittest
generated/build -j$N MODEL=$MODEL HOST_DMD=$DMD DFLAGS="$CI_DFLAGS" ENABLE_RELEASE=1 dmd
make -j$N -C druntime MODEL=$MODEL
Expand Down
3 changes: 3 additions & 0 deletions compiler/src/build.d
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,9 @@ alias toolchainInfo = makeRule!((builder, rule) => builder

app.put("==== Toolchain Information ====\n");

version (OSX)
show("OS", ["sw_vers"]);

version (Windows)
show("SYSTEM", ["systeminfo"]);
else
Expand Down
1 change: 1 addition & 0 deletions compiler/src/dmd/backend/machobj.d
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,7 @@ void MachObj_term(const(char)* objfilename)
sym32.n_sect = sym.n_sect;
fobjbuf.write(&sym32, sym32.sizeof);
}
dysymtab_cmd.nundefsym++;
symtab_cmd.nsyms++;
}
foffset += symtab_cmd.nsyms * (I64 ? nlist_64.sizeof : nlist.sizeof);
Expand Down