Skip to content

Commit

Permalink
Fixed implementation of VariableDeclarationExpression::loadNativeFunc…
Browse files Browse the repository at this point in the history
…tion() for Windows target.
  • Loading branch information
nthnn committed Dec 13, 2024
1 parent 7faaa5d commit d00077c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', '[email protected]', 'lib')
OUTPUT_LIBRARY = os.path.join(OUT_DIR, 'modules', '[email protected]', 'lib', 'core')

cpp_files = []
cc_files = []
Expand Down
1 change: 1 addition & 0 deletions src/n8/ast/expression/VariableDeclarationExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit d00077c

Please sign in to comment.