Skip to content

Commit 0f2f073

Browse files
authored
Merge pull request #307 from WebDrake/test-with-gdmd
Add gdc/gdmd to compilers tested by Travis with rdmd_test
2 parents 1802afa + e25b427 commit 0f2f073

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rdmd_test.d

+3
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,11 @@ void runTests(string rdmdApp, string compiler, string model)
487487
}
488488

489489
/* [REG2.072.0] pragma(lib) is broken with rdmd: https://issues.dlang.org/show_bug.cgi?id=16978 */
490+
/* GDC does not support `pragma(lib)`, so disable when test compiler is gdmd: https://issues.dlang.org/show_bug.cgi?id=18421
491+
(this constraint can be removed once GDC support for `pragma(lib)` is implemented) */
490492

491493
version (linux)
494+
if (compiler.baseName != "gdmd")
492495
{{
493496
TmpDir srcDir = "rdmdTest";
494497
string libSrcName = srcDir.buildPath("libfun.d");

travis.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
set -uexo pipefail
44

5+
~/dlang/install.sh install gdc
56
~/dlang/install.sh install ldc
67

78
~/dlang/install.sh list
89

10+
GDMD=$(find ~/dlang -type f -name "gdmd")
911
LDMD2=$(find ~/dlang -type f -name "ldmd2")
1012

1113
make -f posix.mak all DMD="$(which dmd)"
1214
make -f posix.mak test DMD="$(which dmd)" \
13-
RDMD_TEST_COMPILERS=dmd,"$LDMD2" \
15+
RDMD_TEST_COMPILERS=dmd,"$GDMD","$LDMD2" \
1416
VERBOSE_RDMD_TEST=1

0 commit comments

Comments
 (0)