Commit dc30c2a 1 parent 79159cc commit dc30c2a Copy full SHA for dc30c2a
File tree 4 files changed +13
-7
lines changed
4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
-
2
- # set(CMAKE_CXX_STANDARD 14)
3
- # set(CMAKE_CXX_STANDARD_REQUIRED ON)
4
-
5
1
string (ASCII 27 Esc)
6
2
set (Purple "${Esc} [35m" )
7
3
set (Green "${Esc} [32m" )
8
4
set (Red "${Esc} [31m" )
9
5
set (ColorReset "${Esc} [m" )
10
6
11
7
function (alaska_switch OPT DEFAULT)
8
+ if (${OPT} )
9
+ message (STATUS "${OPT} DEFINED" )
10
+ endif ()
11
+
12
+
12
13
set (${OPT} ${DEFAULT} CACHE BOOL "" )
13
14
14
15
if (${OPT} MATCHES "ON|On|on|TRUE|true|1" )
@@ -40,6 +41,11 @@ alaska_option(CMAKE_BUILD_TYPE Release)
40
41
set (ALASKA_VERSION 2)
41
42
42
43
44
+ set (CMAKE_C_COMPILER_WORKS 1)
45
+ set (CMAKE_CXX_COMPILER_WORKS 1)
46
+
47
+
48
+
43
49
# -------------------------------------------------------------------------------------------
44
50
45
51
cmake_minimum_required (VERSION 3.13)
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ $(BUILD)/Makefile:
23
23
@cd $(BUILD ) && cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=$(ROOT ) /local
24
24
25
25
alaska : $(BUILD_REQ )
26
- @cd $( BUILD ) && cmake --build . --target install --config Release
26
+ @$( MAKE ) -C $( BUILD ) install
27
27
@cp build/compile_commands.json .
28
28
29
29
sanity : alaska
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
23
23
24
24
# Do NOT link libc++ implicitly. This just makes it easier to port to new hardware or embedded environments
25
25
list (REMOVE_ITEM CMAKE_CXX_IMPLICIT_LINK_LIBRARIES stdc++)
26
- add_definitions (-D_GNU_SOURCE - D_REENTRANT)
26
+ add_definitions (-D_REENTRANT)
27
27
28
28
29
29
Original file line number Diff line number Diff line change 14
14
#include < alaska/ThreadCache.hpp>
15
15
#include < alaska/Logger.hpp>
16
16
#include < alaska/HeapPage.hpp>
17
- #include " ck/lock.h"
17
+ #include < ck/lock.h>
18
18
#include < stdio.h>
19
19
#include < sys/mman.h>
20
20
You can’t perform that action at this time.
0 commit comments