mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 20:50:41 +03:00
Dub: Exclude static libs & binaries generation from frontend subpackage
This commit is contained in:
parent
c3b1373afd
commit
01d69f2148
3 changed files with 30 additions and 12 deletions
10
dub.sdl
10
dub.sdl
|
@ -84,8 +84,18 @@ subPackage {
|
|||
iasmdmd,\
|
||||
iasmgcc,\
|
||||
irstate,\
|
||||
lib,\
|
||||
libelf,\
|
||||
libmach,\
|
||||
libmscoff,\
|
||||
libomf,\
|
||||
link,\
|
||||
objc_glue,\
|
||||
s2ir,\
|
||||
scanelf,\
|
||||
scanmach,\
|
||||
scanmscoff,\
|
||||
scanomf,\
|
||||
tocsym,\
|
||||
toctype,\
|
||||
tocvdebug,\
|
||||
|
|
|
@ -21,8 +21,6 @@ import dmd.root.file;
|
|||
|
||||
version (NoBackend)
|
||||
{
|
||||
import dmd.lib : Library;
|
||||
|
||||
struct Symbol;
|
||||
struct code;
|
||||
struct block;
|
||||
|
@ -33,15 +31,20 @@ version (NoBackend)
|
|||
|
||||
extern (C++)
|
||||
{
|
||||
// glue
|
||||
void obj_write_deferred(Library library) {}
|
||||
void obj_start(const(char)* srcfile) {}
|
||||
void obj_end(Library library, const(char)* objfilename) {}
|
||||
void genObjFile(Module m, bool multiobj) {}
|
||||
version (NoMain) {} else
|
||||
{
|
||||
import dmd.lib : Library;
|
||||
|
||||
// msc
|
||||
void backend_init() {}
|
||||
void backend_term() {}
|
||||
// glue
|
||||
void obj_write_deferred(Library library) {}
|
||||
void obj_start(const(char)* srcfile) {}
|
||||
void obj_end(Library library, const(char)* objfilename) {}
|
||||
void genObjFile(Module m, bool multiobj) {}
|
||||
|
||||
// msc
|
||||
void backend_init() {}
|
||||
void backend_term() {}
|
||||
}
|
||||
|
||||
// iasm
|
||||
Statement asmSemantic(AsmStatement s, Scope* sc)
|
||||
|
|
|
@ -44,8 +44,11 @@ import dmd.id;
|
|||
import dmd.identifier;
|
||||
import dmd.inline;
|
||||
import dmd.json;
|
||||
import dmd.lib;
|
||||
import dmd.link;
|
||||
version (NoMain) {} else
|
||||
{
|
||||
import dmd.lib;
|
||||
import dmd.link;
|
||||
}
|
||||
import dmd.mtype;
|
||||
import dmd.objc;
|
||||
import dmd.root.array;
|
||||
|
@ -132,6 +135,7 @@ Where:
|
|||
* Returns:
|
||||
* Application return code
|
||||
*/
|
||||
version (NoMain) {} else
|
||||
private int tryMain(size_t argc, const(char)** argv, ref Param params)
|
||||
{
|
||||
Strings files;
|
||||
|
@ -2437,6 +2441,7 @@ bool parseCommandLine(const ref Strings arguments, const size_t argc, ref Param
|
|||
* and update in place
|
||||
* numSrcFiles = number of source files
|
||||
*/
|
||||
version (NoMain) {} else
|
||||
private void reconcileCommands(ref Param params, size_t numSrcFiles)
|
||||
{
|
||||
static if (TARGET.OSX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue