Skip to content

Commit

Permalink
fixed compilation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BrannonKing committed Sep 30, 2019
1 parent 7afebb0 commit 7854717
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
11 changes: 0 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ cache:
stages:
- build
- test
- quality

jobs:
include:
Expand Down Expand Up @@ -85,13 +84,3 @@ jobs:
os: osx
osx_image: xcode8.3
env: NAME=darwin


- stage: quality
name: "check format"
os: linux
dist: xenial
language: minimal
install:
- sudo apt-get install -y clang-format-3.9
script: git diff -U0 origin/master -- '*.h' '*.cpp' | ./contrib/devtools/clang-format-diff.py -p1
3 changes: 0 additions & 3 deletions packaging/build_windows_32bit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ if which ccache >/dev/null; then
ccache -ps
fi

export CXXFLAGS="${CXXFLAGS:--frecord-gcc-switches}"
echo "CXXFLAGS set to $CXXFLAGS"

pushd depends
make -j`getconf _NPROCESSORS_ONLN` HOST=i686-w64-mingw32 NO_QT=1 V=1
popd
Expand Down
3 changes: 0 additions & 3 deletions packaging/build_windows_64bit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ if which ccache >/dev/null; then
ccache -ps
fi

export CXXFLAGS="${CXXFLAGS:--frecord-gcc-switches}"
echo "CXXFLAGS set to $CXXFLAGS"

pushd depends
make -j`getconf _NPROCESSORS_ONLN` HOST=x86_64-w64-mingw32 NO_QT=1 V=1
popd
Expand Down
4 changes: 2 additions & 2 deletions src/prefixtrie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ static managed_mapped_file::segment_manager* segmentManager()
{
CSharedMemoryFile() : file(GetDataDir() / "shared.mem")
{
std::remove(file.c_str());
fs::remove(file);
auto size = (uint64_t)g_memfileSize * 1024ULL * 1024ULL * 1024ULL;
menaged_file.reset(new managed_mapped_file(bip::create_only, file.c_str(), size));
}
~CSharedMemoryFile()
{
menaged_file.reset();
std::remove(file.c_str());
fs::remove(file);
}
managed_mapped_file::segment_manager* segmentManager()
{
Expand Down

0 comments on commit 7854717

Please sign in to comment.