File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1083,7 +1083,7 @@ Language changes listed by -transition=id:
10831083 * Returns:
10841084 * Return code of the application
10851085 */
1086- version (unittest ) {} else
1086+ version (NoMain ) {} else
10871087int main ()
10881088{
10891089 import core.memory ;
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ $G/dmd: $(DMD_SRCS) $(ROOT_SRCS) $G/newdelete.o $G/backend.a $G/lexer.a $(STRING
462462endif
463463
464464$G/dmd-unittest : $(DMD_SRCS ) $(ROOT_SRCS ) $G/newdelete.o $G/lexer.a $(G_GLUE_OBJS ) $(G_OBJS ) $(STRING_IMPORT_FILES ) $(HOST_DMD_PATH )
465- CC=$(HOST_CXX ) $(HOST_DMD_RUN ) -of$@ $(MODEL_FLAG ) -vtls -J$G -J../res -L-lstdc++ $(DFLAGS ) -g -unittest -main $(filter-out $(STRING_IMPORT_FILES ) $(HOST_DMD_PATH ) ,$^ )
465+ CC=$(HOST_CXX ) $(HOST_DMD_RUN ) -of$@ $(MODEL_FLAG ) -vtls -J$G -J../res -L-lstdc++ $(DFLAGS ) -g -unittest -main -version=NoMain $(filter-out $(STRING_IMPORT_FILES ) $(HOST_DMD_PATH ) ,$^ )
466466
467467unittest : $G/dmd-unittest
468468 $<
You can’t perform that action at this time.
0 commit comments