Cleanup some flags left on during development
authorBrenden Blanco <bblanco@plumgrid.com>
Sun, 9 Aug 2015 04:21:26 +0000 (21:21 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Sun, 9 Aug 2015 04:21:26 +0000 (21:21 -0700)
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
CMakeLists.txt
src/cc/CMakeLists.txt

index 4813589..1dc4280 100644 (file)
@@ -3,7 +3,7 @@
 cmake_minimum_required(VERSION 2.8.7)
 
 project(bcc)
-set(CMAKE_BUILD_TYPE Debug)
+set(CMAKE_BUILD_TYPE Release)
 
 enable_testing()
 
@@ -41,8 +41,8 @@ FOREACH(DIR ${LLVM_INCLUDE_DIRS})
   include_directories("${DIR}/../tools/clang/include")
 ENDFOREACH()
 
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
+set(CMAKE_C_FLAGS "-Wall")
+set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
 endif()
 
 add_subdirectory(scripts)
index 934f1c2..24ef907 100644 (file)
@@ -16,7 +16,6 @@ configure_file(libbpfprog.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libbpfprog.pc @ONLY)
 # prune unused llvm static library stuff when linking into the new .so
 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--exclude-libs=ALL")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-strict-aliasing")
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
 
 # if gcc 4.9 or higher is used, static libstdc++ is a good option
@@ -36,7 +35,6 @@ add_library(bpfprog SHARED bpf_common.cc bpf_module.cc libbpf.c)
 #llvm_map_components_to_libnames(llvm_libs bpf mcjit irreader passes)
 llvm_map_components_to_libnames(llvm_libs mcjit irreader passes linker
   instrumentation objcarcopts bitwriter option x86codegen)
-message(STATUS "llvm_libs=${llvm_libs}")
 # order is important
 set(clang_libs ${libclangFrontend} ${libclangSerialization} ${libclangDriver} ${libclangParse}
   ${libclangSema} ${libclangCodeGen} ${libclangAnalysis} ${libclangRewrite} ${libclangEdit}