Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Create d.toml #111

Merged
merged 7 commits into from Jul 23, 2020
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions languages/d.toml
@@ -0,0 +1,32 @@
name = "D"
entrypoint = "main.d"

aliases = [
"d",
"dlang",
]
extensions = [
"d"
]
packages = [
"gdc",
"gdb"
]

[compile]
command = [
"gdc",
"-g",
"main.d"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm seeing cc1d: error: module main from file main.d is specified twice on the command line in the tests: https://app.circleci.com/pipelines/github/replit/polygott/244/workflows/30b4f5a9-1a25-4922-8bd0-32822468c223/jobs/474/steps

Can you try run make test-d and see what's up on your end?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it, turns out polygott was appending main.d to the end on the run command.

]

[run]
command = [
"./main"
]

[tests]
[tests.hello]
code="import std.stdio: writeln;void main(){writeln(\"hello\");}"
output="hello\n"