Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
systemc-clang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
caesr-pub
systemc-clang
Commits
e7490f90
Commit
e7490f90
authored
Dec 31, 2018
by
rmrf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the paths.sh under scripts
parent
910e0a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
scripts/paths.sh
scripts/paths.sh
+35
-4
No files found.
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
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