diff --git a/build.py b/build.py index 5ce74e8..ec59122 100644 --- a/build.py +++ b/build.py @@ -184,7 +184,7 @@ class build_manager: def __init__(self) -> None: self.method = 'make' self.cxx = '' - self.OptimizationLv = '4' # [O0, O1, O2, O3, Ofast] + self.OptimizationLv = '0' # [O0, O1, O2, O3, Ofast] self.Platform = 'amd64' self.PCH = os.environ['PCH'] if 'PCH' in os.environ else 1 self.StaticLib = 1 diff --git a/header.cxx b/header.cxx index e69de29..612b4a9 100644 --- a/header.cxx +++ b/header.cxx @@ -0,0 +1,12 @@ +#include "./server/libaquery.h" + +#ifndef __AQ_USE_THREADEDGC__ + +#include "./server/gc.h" +__AQEXPORT__(void) __AQ_Init_GC__(Context* cxt) { + GC::gc_handle = static_cast(cxt->gc); +} + +#else // __AQ_USE_THREADEDGC__ +#define __AQ_Init_GC__(x) +#endif // __AQ_USE_THREADEDGC__ diff --git a/msc-plugin/libaquery.vcxproj b/msc-plugin/libaquery.vcxproj index f0d3dd4..82162c9 100644 --- a/msc-plugin/libaquery.vcxproj +++ b/msc-plugin/libaquery.vcxproj @@ -228,6 +228,7 @@ + diff --git a/msvs-py/msvs-py.pyproj b/msvs-py/msvs-py.pyproj index 58b0511..c17a7f4 100644 --- a/msvs-py/msvs-py.pyproj +++ b/msvs-py/msvs-py.pyproj @@ -11,6 +11,9 @@ msvs-py msvs-py False + Global|PythonCore|3.9 + Standard Python launcher + True true @@ -41,16 +44,18 @@ - - - - + + + + - - - + + + + + + -