Remove heavy optims flags from makefile and add predefined function attributes instead.
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -21,7 +21,7 @@ cpp/math.cpp | |||||||
|  |  | ||||||
| OUTPUTFILE = engine.so | OUTPUTFILE = engine.so | ||||||
|  |  | ||||||
| CXXFLAGS = -Wall -Werror -O2 -msse2 -ffast-math -fpic -flto -fno-rtti -fno-exceptions | CXXFLAGS = -std=c++17 -Wall -Werror -O2 -msse2 -fpic -flto -fno-rtti -fno-exceptions | ||||||
|  |  | ||||||
| .PHONY: all | .PHONY: all | ||||||
| all: clean $(OUTPUTFILE) | all: clean $(OUTPUTFILE) | ||||||
|  | |||||||
| @ -20,6 +20,11 @@ | |||||||
| #include <cstdint> | #include <cstdint> | ||||||
|  |  | ||||||
| #define RK_EXPORT extern "C" | #define RK_EXPORT extern "C" | ||||||
|  | #define RK_HOT gnu::hot | ||||||
|  | #define RK_FLATTEN gnu::flatten | ||||||
|  | #define RK_UNROLLED gnu::optimize("unroll-loops") | ||||||
|  | #define RK_FAST gnu::optimize("Ofast") | ||||||
|  | #define RK_INVALID_HANDLE nullptr | ||||||
| #define RK_FLAG(_bit) (1 << (_bit)) | #define RK_FLAG(_bit) (1 << (_bit)) | ||||||
|  |  | ||||||
| typedef bool rk_bool; | typedef bool rk_bool; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user