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
6cc9fbc0
Commit
6cc9fbc0
authored
Dec 28, 2018
by
rmrf
Browse files
Add fish shell script
parent
ba54bdf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
paths.sh
View file @
6cc9fbc0
...
...
@@ -4,7 +4,6 @@
## 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/
...
...
@@ -33,3 +32,4 @@ 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'
`
scripts/paths.fish
0 → 100644
View file @
6cc9fbc0
#! /usr/bin/fish
###===================================================================
##
## It is important to use this script to set all the necessary paths.
## This is a fish shell script.
##===================================================================
# Path for where the binaries are for clang
# SET this.
set -x LLVM_BUILD_DIR /home/$USER/bin/clang-7.0.0/
# Path where SystemC is installed
# SET this.
set -x SYSTEMC /home/$USER/code/systemc-2.3.3/systemc/
# Path for the systemc-clang build directory
# SET this.
set -x SYSTEMC_CLANG_BUILD_DIR /home/$USER/code/systemc-clang-build/
##===================================================================
set -x LLVMCOMPONENT cppbackend
set -x RTTIFLAG -fno-rtti
set -x 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.
set -x CC clang
set -x CXX clang++
set -x LLVM_CXX_FLAGS (eval $LLVMCONFIG --cxxflags)
# Generate all the flags.
set -x LLVM_CXX_FLAGS "$LLVM_CXX_FLAGS -fvisibility-inlines-hidden"
set -x LLVM_LIBS (eval $LLVMCONFIG --libs)
set -x LLVM_LD_FLAGS (eval $LLVMCONFIG --ldflags)
set -x 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