Commit 79159cc 1 parent 9148785 commit 79159cc Copy full SHA for 79159cc
File tree 3 files changed +16
-9
lines changed
3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -24,24 +24,22 @@ function(alaska_switch OPT DEFAULT)
24
24
endfunction ()
25
25
26
26
27
- function (alaska_int_option OPT DEFAULT)
27
+ function (alaska_option OPT DEFAULT)
28
28
set (${OPT} ${DEFAULT} CACHE STRING "" )
29
29
add_compile_definitions (${OPT} =${${OPT} })
30
30
message (STATUS "${Purple} OPTION${ColorReset} ${OPT} ${Green} ${${OPT} }${ColorReset} " )
31
31
endfunction ()
32
32
33
33
34
-
35
34
alaska_switch(ALASKA_ENABLE_COMPILER ON )
36
35
alaska_switch(ALASKA_ENABLE_TESTING ON )
37
36
38
- alaska_int_option(ALASKA_SIZE_BITS 24)
39
-
40
- # set(ALASKA_ENABLE_COMPILER ON CACHE BOOL "Build the Alaska Compiler, binding to LLVM")
41
- # set(ALASKA_DISABLE_TESTING OFF CACHE BOOL "Disable testing the core runtime with gtest")
37
+ alaska_option(ALASKA_SIZE_BITS 24)
38
+ alaska_option(CMAKE_BUILD_TYPE Release)
42
39
43
40
set (ALASKA_VERSION 2)
44
41
42
+
45
43
# -------------------------------------------------------------------------------------------
46
44
47
45
cmake_minimum_required (VERSION 3.13)
Original file line number Diff line number Diff line change @@ -1256,8 +1256,8 @@ namespace graph_lite {
1256
1256
num_edges_removed = detail::container::erase_all (src_neighbors, tgt_full);
1257
1257
}
1258
1258
if (src_pos!=tgt_pos or direction==EdgeDirection::DIRECTED) {
1259
- int num_tgt_removed = detail::container::erase_all (get_in_neighbors (tgt_pos), src_full);
1260
- assert (num_edges_removed == num_tgt_removed);
1259
+ // int num_tgt_removed = detail::container::erase_all(get_in_neighbors(tgt_pos), src_full);
1260
+ // assert(num_edges_removed == num_tgt_removed);
1261
1261
}
1262
1262
if constexpr (logging == Logging::ALLOWED){
1263
1263
if (num_edges_removed==0 ) {
Original file line number Diff line number Diff line change 3
3
set (WARNINGS "-Wall -Werror -Wno-multichar -Wno-unused-function -Wno-attributes " )
4
4
5
5
# Compile the runtime with some special flags
6
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 - gdwarf-4 ${WARNINGS} " )
6
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -gdwarf-4 ${WARNINGS} " )
7
7
set (CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++2a -Wno-deprecated -fno-exceptions -Wno-ctad-maybe-unsupported -Wno-reorder -fno-rtti " )
8
8
9
9
10
10
11
+ set (CMAKE_C_FLAGS_DEBUG "-O0" )
12
+ set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} " )
13
+
14
+
15
+
16
+ set (CMAKE_C_FLAGS_RELEASE "-O3" )
17
+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} " )
18
+
19
+
11
20
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
12
21
13
22
You can’t perform that action at this time.
0 commit comments