Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
systemc-clang
Commits
e7490f90
Commit
e7490f90
authored
Dec 31, 2018
by
rmrf
Browse files
Update the paths.sh under scripts
parent
910e0a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/paths.sh
View file @
e7490f90
export
LLVM_SRC_DIR
=
/home/
$HOME
/workspace/code/systemc-clang/llvm
export
LLVM_BUILD_DIR
=
/home/
$HOME
/workspace/code/systemc-clang/build
export
CLANG_SRC_DIR
=
/home/
$HOME
/workspace/code/systemc-clang/llvm/tools/clang
export
CLANG_BUILD_DIR
=
/home/
$HOME
/workspace/code/systemc-clang/build/tools/clang
#!/bin/bash
##===================================================================
##
## It is important to use this script to set all the necessary paths.
##
# Path for where the binaries are for clang
# SET this.
export
LLVM_BUILD_DIR
=
/home/
$USER
/bin/clang-7.0.0/
# Path where SystemC is installed
# SET this.
export
SYSTEMC
=
/home/
$USER
/code/systemc-2.3.3/systemc/
# Path for the systemc-clang build directory
# SET this.
export
SYSTEMC_CLANG_BUILD_DIR
=
/home/
$USER
/code/systemc-clang-build/
##===================================================================
LLVMCOMPONENT
=
cppbackend
RTTIFLAG
=
-fno-rtti
LLVMCONFIG
=
$LLVM_BUILD_DIR
/bin/llvm-config
# New llvm/clang uses flags that are different than GNU gcc's
# Alternatively, you can use gcc and g++, but some flags don't work.
export
CC
=
clang
export
CXX
=
clang++
export
LLVM_CXX_FLAGS
=
"
`
$LLVMCONFIG
--cxxflags
`
-fno-aligned-allocation"
# Generate all the flags.
export
LLVM_CXX_FLAGS
=
"
$LLVM_CXX_FLAGS
-fvisibility-inlines-hidden"
export
LLVM_LIBS
=
`
$LLVMCONFIG
--libs
`
export
LLVM_LD_FLAGS
=
`
$LLVMCONFIG
--ldflags
`
export
LLVM_LD_FLAGS
=
`
echo
$LLVM_LD_FLAGS
|
sed
's/ *$//g'
`
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment