Skip to content

Commit

Permalink
Workaround compiler bug with macro execution
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter committed Aug 13, 2023
1 parent 6e09812 commit 02818a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bench/src/test/scala/datalog/benchmarks/BenchMacro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import java.util.concurrent.TimeUnit
import org.openjdk.jmh.annotations.*
import org.openjdk.jmh.infra.Blackhole

import test.{SimpleProgram, SimpleMacroCompiler as simple}
import datalog.{SimpleProgram, SimpleMacroCompiler as simple}

import scala.compiletime.uninitialized

Expand Down
4 changes: 3 additions & 1 deletion src/test/scala/test/MacroCompilerPrograms.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package test
// If this is in package test, macro execution fails with a ClassNotFoundException
// Reported as https://github.com/lampepfl/dotty/issues/18393
package datalog

import datalog.execution.{ExecutionEngine, SolvableProgram, MacroCompiler}
import datalog.dsl.*
Expand Down
2 changes: 2 additions & 0 deletions src/test/scala/test/MacroCompilerTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import datalog.dsl.*
import datalog.execution.ir.*
import datalog.storage.{DefaultStorageManager, StorageManager}

import datalog.SimpleMacroCompiler

object MacroCompilerTest {
val simpleCompiled = SimpleMacroCompiler.compile()
}
Expand Down

0 comments on commit 02818a4

Please sign in to comment.