Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/net/fabricmc/loom/task/RenderDocRunTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public void exec() {
exec.args("--working-dir", new File(getProjectDir().get(), getInternalRunDir().get()));
exec.args(getJavaLauncher().get().getExecutablePath());
exec.args(getJvmArgs());
exec.args("-D%s=true".formatted(Constants.Properties.RENDER_DOC));
exec.args(getMainClass().get());

for (CommandLineArgumentProvider provider : getArgumentProviders()) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/net/fabricmc/loom/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ public static final class Properties {
* When using the MojangMappingLayer this will remove names for non root methods by using the intermediary mappings.
*/
public static final String DROP_NON_INTERMEDIATE_ROOT_METHODS = "fabric.loom.dropNonIntermediateRootMethods";
/**
* Set to true in all {@link net.fabricmc.loom.task.RenderDocRunTask} can be used to determine at runtime if running with loom's renderdoc setup.
*/
public static final String RENDER_DOC = "fabric.loom.renderdoc.enabled";
}

public static final class Manifest {
Expand Down