Skip to content

Commit 3be7c51

Browse files
authored
Merge pull request #3096 from kinke/merge_stable
Merge stable
2 parents aeb0b46 + 068ef61 commit 3be7c51

File tree

18 files changed

+95
-43
lines changed

18 files changed

+95
-43
lines changed

changelog/add-dest.dd

Lines changed: 0 additions & 5 deletions
This file was deleted.

changelog/add-frameworks.dd

Lines changed: 0 additions & 14 deletions
This file was deleted.

changelog/fix-cimport-paths.dd

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelog/selections_from_parent_dir.dd

Lines changed: 0 additions & 16 deletions
This file was deleted.

source/dub/compilers/ldc.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class LDCCompiler : Compiler {
5050
tuple(BuildOption.color, ["-enable-color"]),
5151

5252
tuple(BuildOption._docs, ["-Dd=docs"]),
53-
tuple(BuildOption._ddox, ["-Xf=docs.json", "-Dd=__dummy_docs"]),
53+
tuple(BuildOption._ddox, ["-Xf=docs.json", "-Dd=__dummy_docs", "-oq"]),
5454
];
5555

5656
@property string name() const { return "ldc"; }

source/dub/dub.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ class Dub {
621621
enforce(recipe.buildSettings.cSourcePaths.length == 0, "Single-file packages are not allowed to specify C source paths.");
622622
enforce(recipe.buildSettings.importPaths.length == 0, "Single-file packages are not allowed to specify import paths.");
623623
enforce(recipe.buildSettings.cImportPaths.length == 0, "Single-file packages are not allowed to specify C import paths.");
624-
recipe.buildSettings.sourceFiles[""] = [path.toNativeString()];
624+
recipe.buildSettings.sourceFiles[""] = [];
625625
recipe.buildSettings.sourcePaths[""] = [];
626626
recipe.buildSettings.cSourcePaths[""] = [];
627627
recipe.buildSettings.importPaths[""] = [];

source/dub/project.d

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,13 @@ class Project {
744744
} else {
745745
auto subconf = pack.package_.getSubConfiguration(c, packages[dp].package_, platform);
746746
if (!subconf.empty) setConfigs(only(subconf));
747-
else setConfigs(packages[dp].package_.getPlatformConfigurations(platform));
747+
else {
748+
setConfigs(packages[dp].package_.getPlatformConfigurations(platform));
749+
if (depconfigs[dp].length == 0) {
750+
// Try with the executables too
751+
setConfigs(packages[dp].package_.getPlatformConfigurations(platform, true));
752+
}
753+
}
748754
}
749755

750756
// if no valid configuration was found for a dependency, don't include the
@@ -786,7 +792,7 @@ class Project {
786792
if (auto pc = pack.name in m_overriddenConfigs)
787793
determineDependencyConfigs(pack_idx, *pc);
788794
else
789-
foreach (c; pack.package_.getPlatformConfigurations(platform, pack.package_ is m_rootPackage && allow_non_library))
795+
foreach (c; pack.package_.getPlatformConfigurations(platform, allow_non_library))
790796
determineDependencyConfigs(pack_idx, c);
791797
}
792798

source/dub/version_.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
module dub.version_;
2-
enum dubVersion = "v1.39.0-rc.1";
2+
enum dubVersion = "v1.41.0";

test/issue3029_subpack_exe_default_conf/.no_run

Whitespace-only changes.

test/issue3029_subpack_exe_default_conf/.no_test

Whitespace-only changes.

0 commit comments

Comments
 (0)