File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,14 @@ docs/readthedocs/build
2424.project
2525.settings
2626
27+ # Used by mdbx Makefile
28+ /ethdb /mdbx /dist /CMakeFiles /*
29+ /ethdb /mdbx /dist /CMakeCache *
30+ /ethdb /mdbx /dist /* .cmake
31+ /ethdb /mdbx /dist /* .dll
32+ /ethdb /mdbx /dist /* .exe
33+ /ethdb /mdbx /dist /Makefile
34+
2735# used by the Makefile
2836/build /_workspace /
2937/build /cache /
@@ -58,4 +66,4 @@ docker-compose.dev.yml
5866/build
5967* .tmp
6068
61- /ethdb /* .fail
69+ /ethdb /* .fail
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ If(!$chocolateyHasCmake -or !$chocolateyHasMake -or !$chocolateyHasMingw) {
142142# Enter MDBX directory and build libmdbx.dll
143143Write-Host " Building libmdbx.dll ..."
144144Set-Location (Join-Path $MyContext.Directory " ethdb\mdbx\dist" )
145- cmake - G " MinGW Makefiles" . - D CMAKE_MAKE_PROGRAM:PATH= $ (Join-Path $chocolateyBinPath " make.exe" ) - D MDBX_BUILD_SHARED_LIBRARY:BOOL= ON - D MDBX_WITHOUT_MSVC_CRT:BOOOL= OFF
145+ cmake - G " MinGW Makefiles" . - D CMAKE_MAKE_PROGRAM:PATH= $ (Join-Path $chocolateyBinPath " make.exe" ) - D MDBX_BUILD_SHARED_LIBRARY:BOOL= ON - D MDBX_WITHOUT_MSVC_CRT:BOOOL= OFF - D MDBX_FORCE_ASSERTIONS:INT = 0
146146if ($LASTEXITCODE ) {
147147 Write-Host " An error has occurred while configuring MDBX dll"
148148 return
@@ -176,6 +176,11 @@ $Erigon.Build = "go build -v -trimpath -tags=mdbx -ldflags ""-X main.gitCommit
176176$Erigon.BinPath = [string ](Join-Path $MyContext.StartDir " \build\bin" )
177177$env: GO111MODULE = " on"
178178
179+ # Remove previous 'tg.exe' executable (if present)
180+ if (Test-Path - Path (Join-Path $Erigon.BinPath " tg.exe" ) - PathType Leaf) {
181+ Remove-Item - Path (Join-Path $Erigon.BinPath " tg.exe" )
182+ }
183+
179184Write-Host " Building Erigon ..."
180185$outExecutable = [string ](Join-Path $Erigon.BinPath " erigon.exe" )
181186$BuildCommand = " $ ( $Erigon.Build ) -o "" $ ( $outExecutable ) "" ./cmd/erigon"
You can’t perform that action at this time.
0 commit comments