Explorar el Código

comment says the wrong thing. actually uses "Debug" by default.

flying-dude hace 3 años
padre
commit
cc23e1b50b
Se han modificado 3 ficheros con 8 adiciones y 8 borrados
  1. 1 1
      BeefySysLib/CMakeLists.txt
  2. 4 4
      BeefySysLib/Common.h
  3. 3 3
      bin/build.sh

+ 1 - 1
BeefySysLib/CMakeLists.txt

@@ -16,7 +16,7 @@ set(OUTPUT_RELEASE Release/bin)
 
 project(${PROJECT_NAME} CXX C)
 
-# Define Release by default.
+# Define Debug by default.
 if(NOT CMAKE_BUILD_TYPE)
   set(CMAKE_BUILD_TYPE "Debug")
   message(STATUS "Build type not specified: Use Debug by default.")

+ 4 - 4
BeefySysLib/Common.h

@@ -15,10 +15,10 @@
 
 inline size_t HashBytes(const uint8* ptr, size_t count) noexcept
 {
-#ifdef BF64	
+#ifdef BF64
 	const size_t _FNV_offset_basis = 14695981039346656037ULL;
 	const size_t _FNV_prime = 1099511628211ULL;
-#else	
+#else
 	const size_t _FNV_offset_basis = 2166136261U;
 	const size_t _FNV_prime = 16777619U;
 #endif
@@ -29,7 +29,7 @@ inline size_t HashBytes(const uint8* ptr, size_t count) noexcept
 		val ^= (size_t)ptr[_Next];
 		val *= _FNV_prime;
 	}
-	return (val);	
+	return (val);
 }
 
 template <typename T>
@@ -245,7 +245,7 @@ int16 EndianSwap(int16 val);
 
 template<typename T>
 struct RemoveTypePointer
-{	
+{
 };
 
 template<typename T>

+ 3 - 3
bin/build.sh

@@ -37,7 +37,7 @@ if [ ! -f ../BeefySysLib/third_party/libffi/Makefile ]; then
 	echo Building libffi...
 	cd ../BeefySysLib/third_party/libffi
 	./configure
-	make	
+	make
 	cd $SCRIPTPATH
 fi
 
@@ -66,9 +66,9 @@ cd ../IDE/dist
 
 if [[ "$OSTYPE" == "darwin"* ]]; then
 	LIBEXT=dylib
-	LINKOPTS="-Wl,-no_compact_unwind -Wl,-rpath -Wl,@executable_path"	
+	LINKOPTS="-Wl,-no_compact_unwind -Wl,-rpath -Wl,@executable_path"
 else
-	LIBEXT=so	
+	LIBEXT=so
 	LINKOPTS="-ldl -lpthread -Wl,-rpath -Wl,\$ORIGIN"
 fi