File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
command-line/src/main/scala/net/codingwell/weave/CommandLine
core/src/main/scala/net/codingwell/weave Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import net.codingwell.weave.languages.silk._
15
15
import net .codingwell .weave .languages .verilog ._
16
16
import java .io .File
17
17
import akka .actor ._
18
+ import com .typesafe .config .ConfigFactory
18
19
19
20
object Main {
20
21
@@ -28,7 +29,9 @@ object Main {
28
29
29
30
// Ansi console color proxy
30
31
AnsiConsole .systemInstall( config.forcecolor )
31
-
32
+
33
+ val system = ActorSystem (" WeaveSystem" , ConfigFactory .empty(" Empty Actor Config" ) )
34
+
32
35
print(" ." )
33
36
34
37
// Prepare Dependancy Injection
@@ -38,13 +41,13 @@ object Main {
38
41
WeaveModule (),
39
42
new AbstractModule with ScalaModule {
40
43
def configure = {
41
- bind[ActorSystem ].toInstance( ActorSystem ( " WeaveSystem " ) )
44
+ bind[ActorSystem ].toInstance( system )
42
45
bind[GeneratorVisitor ].to[VerilogGeneratorVisitor ]
43
46
bind[Profiler ].to[LoggingProfiler ]
44
47
}
45
48
}
46
49
)
47
-
50
+
48
51
print(" ." )
49
52
50
53
// Get the compiler
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,13 +15,8 @@ import akka.actor._
15
15
class LocalExecutor @ Inject () ( @ Named (" LangCompilers" ) val compilers : im.Set [ActorRef ] ) extends Actor {
16
16
def receive = {
17
17
case msg @ WeaveCompiler .NotifyWork (actor,source,target) =>
18
- // println("Msg: " + source + target)
19
18
compilers foreach ( _.forward(msg) )
20
19
case unknown =>
21
20
println(this .toString() + " recieved unexpected message." )
22
21
}
23
-
24
- override def postStop () = {
25
- compilers foreach ( _ ! PoisonPill )
26
- }
27
22
}
You can’t perform that action at this time.
0 commit comments