Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chaosframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaos-lnf-control
chaosframework
Commits
cb5c84c5
Commit
cb5c84c5
authored
8 years ago
by
Andrea Michelotti
Browse files
Options
Downloads
Patches
Plain Diff
MAC compilation OK
parent
1c76962b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+8
-6
8 additions, 6 deletions
CMakeLists.txt
bootstrap.sh
+5
-5
5 additions, 5 deletions
bootstrap.sh
with
13 additions
and
11 deletions
CMakeLists.txt
+
8
−
6
View file @
cb5c84c5
...
@@ -5,16 +5,18 @@ option(CHAOS_ARCHITECTURE_TEST "Architecture tests" ON)
...
@@ -5,16 +5,18 @@ option(CHAOS_ARCHITECTURE_TEST "Architecture tests" ON)
IF
(
DEFINED ENV{CHAOS_BUNDLE}
)
IF
(
DEFINED ENV{CHAOS_BUNDLE}
)
include
(
$ENV{CHAOS_BUNDLE}/tools/project_template/CMakeChaos.txt
)
include
(
$ENV{CHAOS_BUNDLE}/tools/project_template/CMakeChaos.txt
)
ELSE
()
ELSE
()
IF
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
EXECUTE_PROCESS
(
COMMAND uname -s OUTPUT_VARIABLE SYSTEM_NAME
)
MESSAGE
(
STATUS
" System :
${
SYSTEM_NAME
}
"
)
IF
(
${
SYSTEM_NAME
}
MATCHES
"Darwin"
)
# Mac OS X specific code
# Mac OS X specific code
MESSAGE
(
status
"enabling MAC comp
u
lation"
)
MESSAGE
(
STATUS
"
enabling MAC comp
i
lation"
)
SET
(
FrameworkLib boost_program_options boost_date_time boost_system boost_chrono boost_regex boost_log_setup boost_log boost_filesystem boost_thread boost_atomic zmq jsoncpp pthread dl
)
SET
(
FrameworkLib boost_program_options boost_date_time boost_system boost_chrono boost_regex boost_log_setup boost_log boost_filesystem boost_thread boost_atomic zmq jsoncpp pthread dl
)
ELSE
()
ELSE
()
SET
(
FrameworkLib boost_program_options boost_date_time boost_system boost_chrono boost_regex boost_log_setup boost_log boost_filesystem boost_thread boost_atomic zmq jsoncpp pthread rt dl
)
SET
(
FrameworkLib boost_program_options boost_date_time boost_system boost_chrono boost_regex boost_log_setup boost_log boost_filesystem boost_thread boost_atomic zmq jsoncpp pthread rt dl
)
ENDIF
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
ENDIF
()
ENDIF
()
ENDIF
()
project
(
chaos
)
project
(
chaos
)
SET
(
${
PROJECT_NAME
}
_MAJOR_VERSION 0
)
SET
(
${
PROJECT_NAME
}
_MAJOR_VERSION 0
)
...
@@ -22,8 +24,8 @@ SET( ${PROJECT_NAME}_MINOR_VERSION 1 )
...
@@ -22,8 +24,8 @@ SET( ${PROJECT_NAME}_MINOR_VERSION 1 )
SET
(
${
PROJECT_NAME
}
_PATCH_LEVEL 0
)
SET
(
${
PROJECT_NAME
}
_PATCH_LEVEL 0
)
add_definitions
(
-DDEBUG
-static-libstdc++
)
add_definitions
(
-DDEBUG
)
SET
(
CMAKE_EXE_LINKER_FLAGS
"-static-libstdc++"
)
EXECUTE_PROCESS
(
COMMAND chaos/common/version.sh
)
EXECUTE_PROCESS
(
COMMAND chaos/common/version.sh
)
...
...
This diff is collapsed.
Click to expand it.
bootstrap.sh
+
5
−
5
View file @
cb5c84c5
...
@@ -42,9 +42,6 @@ if [ -z "$LIB_EVENT_VERSION" ];then
...
@@ -42,9 +42,6 @@ if [ -z "$LIB_EVENT_VERSION" ];then
LIB_EVENT_VERSION
=
release-2.1.4-alpha
LIB_EVENT_VERSION
=
release-2.1.4-alpha
fi
fi
if
[
-z
"
$CHAOS_BOOST_VERSION
"
]
;
then
CHAOS_BOOST_VERSION
=
55
fi
#if [ ! -n "$LUA_VERSION" ]; then
#if [ ! -n "$LUA_VERSION" ]; then
# LUA_VERSION=5.3.2
# LUA_VERSION=5.3.2
...
@@ -73,6 +70,9 @@ if [ -z "CFLAGS" ];then
...
@@ -73,6 +70,9 @@ if [ -z "CFLAGS" ];then
export
CFLAGS
=
"-DCHAOS -fPIC"
export
CFLAGS
=
"-DCHAOS -fPIC"
fi
fi
if
[
-z
"
$CHAOS_BOOST_VERSION
"
]
;
then
CHAOS_BOOST_VERSION
=
55
fi
#####
#####
if
[
-e
$CHAOS_BUNDLE
/tools/common_util.sh
]
;
then
if
[
-e
$CHAOS_BUNDLE
/tools/common_util.sh
]
;
then
...
@@ -93,7 +93,7 @@ else
...
@@ -93,7 +93,7 @@ else
CHAOS_DIR
=
$CHAOS_BUNDLE
CHAOS_DIR
=
$CHAOS_BUNDLE
if
[
`
echo
$OS
|
tr
'[:upper:]'
'[:lower:]'
`
=
`
echo
"Darwin"
|
tr
'[:upper:]'
'[:lower:]'
`
]
&&
[
$KERNEL_SHORT_VER
-ge
1300
]
&&
[
!
-n
"
$CROSS_HOST
"
]
;
then
if
[
`
echo
$OS
|
tr
'[:upper:]'
'[:lower:]'
`
=
`
echo
"Darwin"
|
tr
'[:upper:]'
'[:lower:]'
`
]
&&
[
$KERNEL_SHORT_VER
-ge
1300
]
&&
[
!
-n
"
$CROSS_HOST
"
]
;
then
echo
"Use standard CLIB with clang"
echo
"Use standard CLIB with clang"
CHAOS_BOOST_VERSION
=
56
export
CC
=
clang
export
CC
=
clang
export
CXX
=
"clang++"
export
CXX
=
"clang++"
export
CXXFLAGS
=
"-stdlib=libstdc++"
export
CXXFLAGS
=
"-stdlib=libstdc++"
...
@@ -103,7 +103,7 @@ else
...
@@ -103,7 +103,7 @@ else
APPLE
=
"true"
APPLE
=
"true"
## 18, 16 doesnt compile
## 18, 16 doesnt compile
export
LMEM_VERSION
=
1.0.18
export
LMEM_VERSION
=
1.0.18
export
CHAOS_BOOST_FLAGS
=
"
$CHAOS_BOOST_FLAGS
toolset=clang cxxflags=
\"
-stdlib=libstdc++
-fPIC
\"
linkflags=-stdlib=libstdc++ link=static runtime-link=shared variant=release"
export
CHAOS_BOOST_FLAGS
=
"
$CHAOS_BOOST_FLAGS
toolset=clang cxxflags=-stdlib=libstdc++ linkflags=-stdlib=libstdc++ link=static runtime-link=shared variant=release"
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment