You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(build): Explicitly build DLL target in Windows build script
The default `nmake` target for `libpg_query` builds the static library
and runs tests, but does not produce the required `pg_query.dll`.
This commit changes the build command to `nmake /F Makefile.msvc dll`
to specifically instruct the build system to create the dynamic link
library needed for the .NET application. This resolves the
"Build artifact pg_query.dll not found" error.
Write-Error"❌ nmake build command failed with exit code $LASTEXITCODE. The pg_query.dll was not created. Check the C++ compiler/linker errors in the log above for the root cause."
83
+
Write-Error"❌ nmake build command failed with exit code $LASTEXITCODE. The pg_query.dll was not created. Check C++ errors above."
108
84
exit1
109
85
}
110
86
}
111
87
else {
112
88
Write-Host"Cleaning with nmake (pre-configured environment)..."
113
89
& nmake /F Makefile.msvc clean
114
-
if ($LASTEXITCODE-ne0) {
115
-
Write-Warning"nmake clean command failed (this may be okay). Exit code: $LASTEXITCODE"
116
-
}
117
90
118
-
Write-Host"Building with nmake (pre-configured environment)..."
119
-
& nmake /F Makefile.msvc
91
+
Write-Host"Building DLL with nmake (pre-configured environment)..."
92
+
# --- DER FINALE FIX IST HIER: 'dll' hinzugefügt ---
93
+
& nmake /F Makefile.msvc dll
120
94
if ($LASTEXITCODE-ne0) {
121
-
Write-Error"❌ nmake build command failed with exit code $LASTEXITCODE. The pg_query.dll was not created. Check the C++ compiler/linker errors in the log above for the root cause."
95
+
Write-Error"❌ nmake build command failed with exit code $LASTEXITCODE. The pg_query.dll was not created. Check C++ errors above."
122
96
exit1
123
97
}
124
98
}
125
-
# --- ENDE DES FIXES ---
126
99
}
127
100
else {
128
101
Write-Error"Makefile.msvc not found. Cannot build libpg_query."
@@ -133,22 +106,19 @@ if (-not $SkipNative) {
133
106
}
134
107
135
108
# Step 3: Create runtime directories and copy libraries
109
+
# ... (Dieser Teil ist jetzt korrekt und wird funktionieren) ...
136
110
if (-not$SkipNative) {
137
111
Write-Host"📁 Setting up runtime directories..."-ForegroundColor Yellow
0 commit comments