mirror of https://gitlab.com/basile.b/dexed.git
more accurate doc about DUB script and the compiler used
This commit is contained in:
parent
719eb4bf54
commit
bd211e18e5
|
@ -76,7 +76,7 @@ Note that the action _Run file unittest_ is based on the same internal function
|
|||

|
||||
|
||||
- **alwaysToFolder**: deprecated, checked meant **outputFolderCondition** set to [ifSaved, ifInProject], and [ifInProject] otherwise.
|
||||
- **compiler**: Select the [compiler](options_compilers_paths) used to produce the runnable binary. When GDC or LDC is selected their bridges based on DMD command line interface are used (GDMD and LDMD).
|
||||
- **compiler**: Select the [compiler](options_compilers_paths) used to produce the runnable binary. When GDC or LDC is selected their bridges based on DMD command line interface are used (GDMD and LDMD). This setting is also used when a DUB script is compiled (see [file menu](Run DUB single file package)).
|
||||
- **detectLibraries**: When checked the static libraries used by the runnable are detected from the [library manager](widgets_library_manager) by performing import analysis. When unchecked, all the library manager entries are passed and the compiler does the selection.
|
||||
- **detectMain**: When checked the `main()` function is detected automatically and the `-main` switch is set accordingly. When not checked `-main` is never passed. This options is useful with the **Run file unittests** action because it allows to test a module that's also a valid program.
|
||||
- **outputFolder**: Defines a folder where the runnable binary is output. If the value starts by a drive letter or a directory separator then the folder must exist, otherwise it's considered as a subfolder, relative to the runnable filename, which is created automatically.
|
||||
|
|
|
@ -13,7 +13,7 @@ This category exposes the DUB options that are passed to the build tool each tim
|
|||

|
||||
|
||||
- **combined**: If checked, tries to build the whole project in a single compiler run.
|
||||
- **compiler**: Selects [which compiler](options_compilers_paths) is used by DUB.
|
||||
- **compiler**: Selects [which compiler](options_compilers_paths) is used by DUB when a project is compiled. Note that the DUB scripts don't use this setting, instead the same preference set for the [runnable modules](features_runnables) is used.
|
||||
- **dependenciesCheck**: Defines how DUB checks the project dependencies, typically used to avoid too much network operations.
|
||||
- **forceRebuild**: Forces a full recompilation, even if DUB determines that this would not be necessary.
|
||||
- **linkMode**: Specifies the way the compiler and linker are invoked.
|
||||
|
|
|
@ -2980,7 +2980,7 @@ begin
|
|||
else
|
||||
fDoc.saveTempFile;
|
||||
fRunProc.Executable:= exeFullName('dub' + exeExt);
|
||||
fRunProc.Parameters.Add(fDoc.fileName);
|
||||
fRunProc.Parameters.Add('--single');
|
||||
if not outside then
|
||||
begin
|
||||
fRunProc.Options := [poStderrToOutPut, poUsePipes];
|
||||
|
@ -2998,6 +2998,7 @@ begin
|
|||
if fRunnablesOptions.compiler <> dmd then
|
||||
fRunProc.Parameters.add('--compiler=' +
|
||||
fCompilerSelector.getCompilerPath(fRunnablesOptions.compiler));
|
||||
fRunProc.Parameters.Add(fDoc.fileName);
|
||||
fRunProc.execute;
|
||||
end;
|
||||
|
||||
|
|
Loading…
Reference in New Issue