Skip to content

Commit

Permalink
Changed default build type to Release; Updated appveyor.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mlomb committed Jun 5, 2018
1 parent 230d749 commit 747343d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Code/include/OE/Misc/MemoryPool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
namespace OrbitEngine { namespace Misc {
class MemoryPool {
public:
MemoryPool(size_t size, int capacity);
MemoryPool(unsigned long long size, int capacity);
virtual ~MemoryPool();

virtual void* allocate();
virtual void deallocate(void* ptr);

private:
size_t m_Size;
unsigned long long m_Size;
int m_Capacity;

int m_Free;
Expand All @@ -23,7 +23,7 @@ namespace OrbitEngine { namespace Misc {

class TrackedMemoryPool : public MemoryPool {
public:
TrackedMemoryPool(size_t size, int capacity);
TrackedMemoryPool(unsigned long long size, int capacity);
~TrackedMemoryPool();

void* allocate() override;
Expand Down
4 changes: 2 additions & 2 deletions Code/src/OE/Misc/MemoryPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <iostream>

namespace OrbitEngine { namespace Misc {
MemoryPool::MemoryPool(size_t size, int capacity)
MemoryPool::MemoryPool(unsigned long long size, int capacity)
: m_Size(size), m_Capacity(capacity)
{
m_Memory = new unsigned char[m_Size * capacity];
Expand Down Expand Up @@ -45,7 +45,7 @@ namespace OrbitEngine { namespace Misc {
++m_Free;
}

TrackedMemoryPool::TrackedMemoryPool(size_t size, int capacity)
TrackedMemoryPool::TrackedMemoryPool(unsigned long long size, int capacity)
: MemoryPool(size, capacity)
{
m_Used.resize(capacity);
Expand Down
2 changes: 1 addition & 1 deletion Tools/Build/Linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ echo "Build Path: $BuildRoot"

mkdir -p "$BuildRoot"
cd "$BuildRoot"
cmake "$ScriptRoot"
cmake -DCMAKE_BUILD_TYPE=Release "$ScriptRoot"
2 changes: 1 addition & 1 deletion Tools/Build/Windows/build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ $ScriptRoot = Split-Path $MyInvocation.MyCommand.Path
echo "********** BUILDING FOR WINDOWS ON WINDOWS **********"

Push-Location $buildPath
cmake.exe "$basePath"
cmake -DCMAKE_BUILD_TYPE=Release "$basePath"
Pop-Location
11 changes: 7 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ image:
- Ubuntu
- Visual Studio 2015
install:
- sh: sudo apt-get install uuid-dev
- git submodule update --init --recursive
before_build:
- cmd: . "Tools/Build/Windows/build_windows.ps1"
- cmd: powershell -command ". \"Tools/Build/Windows/build_windows.ps1\""
- sh: . "Tools/Build/Linux/build.sh"
build: off
build_script:
- cmd: msbuild Build/Windows/OrbitEngine.sln
- sh: cd Build/Linux/ && make
- cmd: msbuild Build/Windows/OrbitEngine.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- sh: make
after_build:
- cmd: appveyor PushArtifact Build/Windows/Release/OrbitEngine.lib
- sh: appveyor PushArtifact Build/Linux/OrbitEngine.lib

0 comments on commit 747343d

Please sign in to comment.