# HG changeset patch # User Michael Goffioul # Date 1342536533 18000 # Node ID fd8d1a616be1c2ca1c1fc26a0be245eda6202059 # Parent 6bc39019f7260fb4b0f81f0ea311240a79ad094b Compile JIT on msvc * src/TEMPLATE-INST/Array-jit.cc: Mark Array as dll import. * src/pt-jit.cc: Include symtab.h. * src/pt-jit.h: Avoid including Array in Cell.h. diff --git a/src/TEMPLATE-INST/Array-jit.cc b/src/TEMPLATE-INST/Array-jit.cc --- a/src/TEMPLATE-INST/Array-jit.cc +++ b/src/TEMPLATE-INST/Array-jit.cc @@ -29,6 +29,8 @@ #include "Array.h" #include "Array.cc" +extern template class OCTAVE_API Array; + #include "pt-jit.h" NO_INSTANTIATE_ARRAY_SORT (jit_operation::overload); diff --git a/src/pt-jit.cc b/src/pt-jit.cc --- a/src/pt-jit.cc +++ b/src/pt-jit.cc @@ -60,6 +60,7 @@ #include "ov-scalar.h" #include "ov-complex.h" #include "pt-all.h" +#include "symtab.h" static llvm::IRBuilder<> builder (llvm::getGlobalContext ()); diff --git a/src/pt-jit.h b/src/pt-jit.h --- a/src/pt-jit.h +++ b/src/pt-jit.h @@ -35,7 +35,6 @@ #include "Array.h" #include "Range.h" #include "pt-walk.h" -#include "symtab.h" // -------------------- Current status -------------------- // Simple binary operations (+-*/) on octave_scalar's (doubles) are optimized.