summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xxmake/languages/dlang/xmake.lua22
-rw-r--r--xmake/platforms/macosx/check.lua24
2 files changed, 23 insertions, 23 deletions
diff --git a/xmake/languages/dlang/xmake.lua b/xmake/languages/dlang/xmake.lua
index a6fb829fb..e9f86c0d0 100755
--- a/xmake/languages/dlang/xmake.lua
+++ b/xmake/languages/dlang/xmake.lua
@@ -26,16 +26,16 @@
language("dlang")
-- set source file kinds
- set_sourcekinds {dd = ".d"}
+ set_sourcekinds {dc = ".d"}
-- set source file flags
- set_sourceflags {dd = "dflags"}
+ set_sourceflags {dc = "dflags"}
-- set target kinds
- set_targetkinds {binary = "dd-ld", static = "dd-ar", shared = "dd-sh"}
+ set_targetkinds {binary = "dc-ld", static = "dc-ar", shared = "dc-sh"}
-- set target flags
- set_targetflags {binary = "dd-ldflags", static = "dd-arflags", shared = "dd-shflags"}
+ set_targetflags {binary = "dc-ldflags", static = "dc-arflags", shared = "dc-shflags"}
-- on load
on_load("load")
@@ -98,21 +98,21 @@ language("dlang")
config =
{
{ }
- , {nil, "dd", "kv", nil, "The Dlang Compiler" }
+ , {nil, "dc", "kv", nil, "The Dlang Compiler" }
, {nil, "dflags", "kv", nil, "The Dlang Compiler Flags" }
, { }
- , {nil, "dd-ld", "kv", nil, "The Dlang Linker" }
- , {nil, "dd-ldflags", "kv", nil, "The Dlang Linker Flags" }
+ , {nil, "dc-ld", "kv", nil, "The Dlang Linker" }
+ , {nil, "dc-ldflags", "kv", nil, "The Dlang Linker Flags" }
, { }
- , {nil, "dd-ar", "kv", nil, "The Dlang Static Library Archiver" }
- , {nil, "dd-arflags", "kv", nil, "The Dlang Static Library Archvier Flags" }
+ , {nil, "dc-ar", "kv", nil, "The Dlang Static Library Archiver" }
+ , {nil, "dc-arflags", "kv", nil, "The Dlang Static Library Archvier Flags" }
, { }
- , {nil, "dd-sh", "kv", nil, "The Dlang Shared Library Linker" }
- , {nil, "dd-shflags", "kv", nil, "The Dlang Shared Library Linker Flags" }
+ , {nil, "dc-sh", "kv", nil, "The Dlang Shared Library Linker" }
+ , {nil, "dc-shflags", "kv", nil, "The Dlang Shared Library Linker Flags" }
-- TODO
, { }
diff --git a/xmake/platforms/macosx/check.lua b/xmake/platforms/macosx/check.lua
index c675739ac..a18a83cdf 100644
--- a/xmake/platforms/macosx/check.lua
+++ b/xmake/platforms/macosx/check.lua
@@ -84,18 +84,18 @@ function _check_toolchains(config)
checker.check_toolchain(config, "go-ld", "", "gccgo", "the golang linker")
-- check for dlang tools
- checker.check_toolchain(config, "dd", "", "dmd", "the dlang compiler")
- checker.check_toolchain(config, "dd", "", "ldc2", "the dlang compiler")
- checker.check_toolchain(config, "dd", "", "gdc", "the dlang compiler")
- checker.check_toolchain(config, "dd-ar", "", "dmd", "the dlang static library archiver")
- checker.check_toolchain(config, "dd-ar", "", "ldc2", "the dlang static library archiver")
- checker.check_toolchain(config, "dd-ar", "", "gdc", "the dlang static library archiver")
- checker.check_toolchain(config, "dd-sh", "", "dmd", "the dlang shared library linker")
- checker.check_toolchain(config, "dd-sh", "", "ldc2", "the dlang shared library linker")
- checker.check_toolchain(config, "dd-sh", "", "gdc", "the dlang shared library linker")
- checker.check_toolchain(config, "dd-ld", "", "dmd", "the dlang linker")
- checker.check_toolchain(config, "dd-ld", "", "ldc2", "the dlang linker")
- checker.check_toolchain(config, "dd-ld", "", "gdc", "the dlang linker")
+ checker.check_toolchain(config, "dc", "", "dmd", "the dlang compiler")
+ checker.check_toolchain(config, "dc", "", "ldc2", "the dlang compiler")
+ checker.check_toolchain(config, "dc", "", "gdc", "the dlang compiler")
+ checker.check_toolchain(config, "dc-ar", "", "dmd", "the dlang static library archiver")
+ checker.check_toolchain(config, "dc-ar", "", "ldc2", "the dlang static library archiver")
+ checker.check_toolchain(config, "dc-ar", "", "gdc", "the dlang static library archiver")
+ checker.check_toolchain(config, "dc-sh", "", "dmd", "the dlang shared library linker")
+ checker.check_toolchain(config, "dc-sh", "", "ldc2", "the dlang shared library linker")
+ checker.check_toolchain(config, "dc-sh", "", "gdc", "the dlang shared library linker")
+ checker.check_toolchain(config, "dc-ld", "", "dmd", "the dlang linker")
+ checker.check_toolchain(config, "dc-ld", "", "ldc2", "the dlang linker")
+ checker.check_toolchain(config, "dc-ld", "", "gdc", "the dlang linker")
end
-- check it