Skip to content

Commit

Permalink
Allow reggaefile to be included in the sources to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
atilaneves committed Jun 20, 2024
1 parent 7a796e8 commit 962ad74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions payload/reggae/options.d
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ struct Options {
bool buildReggaefileSingle; // single-threaded build using the binary backend
bool buildReggaefileOptimise; // compile the build description with optimisations
bool forceReggaefileDeps;
package bool includeReggaefileInSources; // for internal usage to build the reggaefile itself
string[string] userVars; // must be last

Options dup() @safe pure const nothrow scope {
Expand Down
2 changes: 1 addition & 1 deletion payload/reggae/rules/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ string[] sourcesToFileNames(alias sourcesFunc = Sources!())(in imported!"reggae.
.sort
.map!(a => removeProjectPath(options.projectPath, a))
.filter!(srcs.filterFunc)
.filter!(a => a != "reggaefile.d")
.filter!(a => a != "reggaefile.d" || options.includeReggaefileInSources)
.array
;

Expand Down

0 comments on commit 962ad74

Please sign in to comment.