File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ include(MozartProperties)
11
11
set (MOZART_DIR "${CMAKE_CURRENT_SOURCE_DIR} " )
12
12
set (MOZART_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR} " )
13
13
14
+ set (DEFAULT_MOZART_GENERATOR_FLAGS
15
+ "--std=c++0x"
16
+ "-Wno-invalid-noreturn"
17
+ "-Wno-return-type"
18
+ "-Wno-braced-scalar-init" # Silence warning for macro ATOMIC_FLAG_INIT in atomic_base.h
19
+ )
20
+
14
21
# Some helpers when using MinGW
15
22
if (MINGW)
16
23
get_filename_component (CMAKE_MAKE_PROGRAM_PATH "${CMAKE_MAKE_PROGRAM} " PATH )
@@ -32,7 +39,9 @@ if(MINGW)
32
39
set (DEFAULT_MOZART_GENERATOR_FLAGS
33
40
"-I${MINGW_ROOT} /${GCC_ARCH_TRIPLE} /include/c++"
34
41
"-I${MINGW_ROOT} /${GCC_ARCH_TRIPLE} /include/c++/${GCC_ARCH_TRIPLE} "
35
- "-I${MINGW_ROOT} /${GCC_ARCH_TRIPLE} /include" )
42
+ "-I${MINGW_ROOT} /${GCC_ARCH_TRIPLE} /include"
43
+ ${DEFAULT_MOZART_GENERATOR_FLAGS}
44
+ )
36
45
37
46
set (BOOST_ROOT "${MINGW_ROOT} "
38
47
CACHE PATH "Path where Boost is installed" )
@@ -42,8 +51,6 @@ if(MINGW)
42
51
enable_language (RC)
43
52
set (CMAKE_RC_COMPILE_OBJECT
44
53
"<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>" )
45
- else ()
46
- set (DEFAULT_MOZART_GENERATOR_FLAGS "" )
47
54
endif ()
48
55
49
56
# Some configuration
Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ add_custom_command(
47
47
OUTPUT ${GENERATED_BOOSTSOURCES_BINARY_DIR} /boostenv.gen
48
48
49
49
# First pass: generate data types and interfaces
50
- COMMAND ${clang_bin} "${CXX_STD_OPT} "
51
- -Wno-invalid-noreturn -Wno-return-type
50
+ COMMAND ${clang_bin}
52
51
-o ${GENERATED_BOOSTSOURCES_BINARY_DIR} /boostenv.ast
53
52
-I ${Boost_INCLUDE_DIRS}
54
53
-I ${CMAKE_CURRENT_SOURCE_DIR} /../../vm/main
@@ -60,8 +59,7 @@ add_custom_command(
60
59
${GENERATED_BOOSTSOURCES_BINARY_DIR} /
61
60
62
61
# Second pass: generate builtin information
63
- COMMAND ${clang_bin} "${CXX_STD_OPT} "
64
- -Wno-invalid-noreturn -Wno-return-type
62
+ COMMAND ${clang_bin}
65
63
-o ${GENERATED_BOOSTSOURCES_BINARY_DIR} /boostenvmodules.astbi
66
64
-I ${Boost_INCLUDE_DIRS}
67
65
-I ${GENERATED_BOOSTSOURCES_BINARY_DIR}
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ add_custom_command(
21
21
OUTPUT ${GENERATED_SOURCES_BINARY_DIR} /mozart.gen
22
22
23
23
# First pass: generate data types and interfaces
24
- COMMAND ${clang_bin} -std=c++0x
25
- -Wno-invalid-noreturn -Wno-return-type
24
+ COMMAND ${clang_bin}
26
25
-o ${GENERATED_SOURCES_BINARY_DIR} /mozart.ast
27
26
-DMOZART_GENERATOR
28
27
${MOZART_GENERATOR_FLAGS}
@@ -32,8 +31,7 @@ add_custom_command(
32
31
${GENERATED_SOURCES_BINARY_DIR} /
33
32
34
33
# Second pass: generate builtin information
35
- COMMAND ${clang_bin} -std=c++0x
36
- -Wno-invalid-noreturn -Wno-return-type
34
+ COMMAND ${clang_bin}
37
35
-o ${GENERATED_SOURCES_BINARY_DIR} /coremodules.astbi
38
36
-I ${GENERATED_SOURCES_BINARY_DIR}
39
37
-DMOZART_BUILTIN_GENERATOR
You can’t perform that action at this time.
0 commit comments