Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
8df0cc3a
Commit
8df0cc3a
authored
Mar 29, 2022
by
Manish
Committed by
Robert Schmidt
Mar 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile time flag added for native architecture compilation
Signed-off-by:
Manish
<
Manish1.Kumar@amd.com
>
parent
ee9ec777
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
cmake_targets/build_oai
cmake_targets/build_oai
+8
-0
No files found.
cmake_targets/build_oai
View file @
8df0cc3a
...
...
@@ -59,6 +59,8 @@ BUILD_ECLIPSE=0
NR
=
"False"
OPTIONAL_LIBRARIES
=
"telnetsrv enbscope uescope nrscope"
RU
=
0
CMAKE_C_FLAGS
=()
CMAKE_CXX_FLAGS
=()
function
print_help
()
{
echo_info
"
...
...
@@ -182,6 +184,10 @@ function main() {
until
[
-z
"
$1
"
]
do
case
"
$1
"
in
--archnative
)
CMAKE_C_FLAGS+
=(
"-march=native"
)
CMAKE_CXX_FLAGS+
=(
"-march=native"
)
shift
;;
-c
|
--clean
)
CLEAN
=
1
shift
;;
...
...
@@ -609,6 +615,8 @@ function main() {
mkdir
-p
$DIR
/
$BUILD_DIR
/build
cd
$DIR
/
$BUILD_DIR
/build
if
[[
${#
CMAKE_C_FLAGS
[@]
}
>
0
]]
;
then
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_C_FLAGS=
\"
${
CMAKE_C_FLAGS
[*]
}
\"
"
;
fi
if
[[
${#
CMAKE_CXX_FLAGS
[@]
}
>
0
]]
;
then
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_CXX_FLAGS=
\"
${
CMAKE_CXX_FLAGS
[*]
}
\"
"
;
fi
echo_info
"running
$CMAKE_CMD
"
eval
$CMAKE_CMD
../..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment