diff --git a/build.py b/build.py index 7f3f5ac..1075c1d 100644 --- a/build.py +++ b/build.py @@ -49,7 +49,7 @@ PLATFORM = platform.system() ARCH = platform.architecture()[0] OUTPUT_EXECUTABLE = os.path.join(OUT_DIR, 'bin', 'n8') -OUTPUT_LIBRARY = os.path.join(OUT_DIR, 'modules', 'core@1.0.0', 'lib') +OUTPUT_LIBRARY = os.path.join(OUT_DIR, 'modules', 'core@1.0.0', 'lib', 'core') cpp_files = [] cc_files = [] diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index ae6e287..23a3258 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -81,6 +81,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( #if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64) std::filesystem::path path(library); + std::cout << "Loading module: " << library << std::endl; std::cout << "Loading DLLs from: " << path.parent_path().string() << std::endl; AddDllDirectory(path.parent_path().wstring().c_str());