Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
iRMB
VirtualFluids
Commits
d88e0bed
Commit
d88e0bed
authored
5 years ago
by
Jannis Linxweiler
Committed by
kutscher
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
adds cmake compiler file for llvm
parent
2a3ded6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMake/CMakeCompilerMacros.txt
+2
-0
2 additions, 0 deletions
CMake/CMakeCompilerMacros.txt
CMake/compilerflags/llvm.cmake
+68
-0
68 additions, 0 deletions
CMake/compilerflags/llvm.cmake
with
70 additions
and
0 deletions
CMake/CMakeCompilerMacros.txt
+
2
−
0
View file @
d88e0bed
...
...
@@ -75,6 +75,8 @@ MACRO(SET_CAB_COMPILER)
ELSE()
SET( CAB_COMPILER "msvc19_32" )
ENDIF()
ELSEIF(APPLE)
SET( CAB_COMPILER "llvm" )
ELSE()
EXEC_PROGRAM( ${CMAKE_CXX_COMPILER}
ARGS --version
...
...
This diff is collapsed.
Click to expand it.
CMake/compilerflags/llvm.cmake
0 → 100644
+
68
−
0
View file @
d88e0bed
###############################################################################################################
##
## gcc74
##
###############################################################################################################
MACRO
(
SET_COMPILER_SPECIFIC_FLAGS_INTERN build_type use64BitOptions
)
#############################################################################################################
# Flags
#############################################################################################################
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS
"-O3 -fomit-frame-pointer -finline-functions -fPIC"
)
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS
"-O3 -fomit-frame-pointer -finline-functions -fPIC"
)
#############################################################################################################
# 64Bit support
#############################################################################################################
IF
(
${
use64BitOptions
}
)
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS
"-m64"
)
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS
"-m64"
)
ENDIF
()
#############################################################################################################
# OpenMP support
#############################################################################################################
IF
(
USE_OPENMP
)
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS
"-fopenmp"
)
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS
"-fopenmp"
)
ENDIF
()
#############################################################################################################
# mt support
#############################################################################################################
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS
"-pthread"
)
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS
"-pthread"
)
#############################################################################################################
# c++ 11 support
#############################################################################################################
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS
"-std=c++11"
)
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS
"-std=c++11"
)
#############################################################################################################
# disable warning
#############################################################################################################
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS
"-Wno-deprecated"
)
#deprecated header warning
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS
"-Wbackslash-newline-escape"
)
#backslash and newline separated by space
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS
"-Wcomment"
)
#'/*' within block comment
LIST
(
APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS
"-Wbackslash-newline-escape"
)
#backslash and newline separated by space
#############################################################################################################
# c++ 17 support
#############################################################################################################
#LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-std=c++17")
#LIST(APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS "-std=c++17")
#LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-fext-numeric-literals")
#LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=0")
#LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-Wregister")
IF
(
NOT APPLE
)
LIST
(
APPEND CAB_ADDITIONAL_LINK_PROPS
"-lrt"
)
ENDIF
()
ENDMACRO
(
SET_COMPILER_SPECIFIC_FLAGS_INTERN build_type use64BitOptions
)
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