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
31b517e8
Commit
31b517e8
authored
Dec 05, 2018
by
rmrf
Browse files
Linking fixed under gcc
parent
717bf221
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
31b517e8
...
...
@@ -32,7 +32,7 @@ endif(USE_SAUTO)
set
(
LLVM_LD_FLAGS
$ENV{LLVM_LD_FLAGS}
"
$ENV{LLVM_LD_FLAGS}
-lpthread"
)
set
(
LLVM_LIBS
...
...
@@ -110,12 +110,13 @@ endif (USE_SAUTO)
target_link_libraries
(
${
TARGET
}
${
clang_lib
}
)
endforeach
()
foreach
(
ld_flag
${
LLVM_LD_FLAGS
}
)
target_link_libraries
(
${
TARGET
}
${
ld_flag
}
)
endforeach
()
foreach
(
llvm_lib
${
LLVM_LIBS
}
)
target_link_libraries
(
${
TARGET
}
${
llvm_lib
}
)
endforeach
()
foreach
(
ld_flag
${
LLVM_LD_FLAGS
}
)
target_link_libraries
(
${
TARGET
}
${
ld_flag
}
)
endforeach
()
paths.sh
View file @
31b517e8
# The path where you have installed LLVM/CLANG.
# This is where make install put the executables.
export
LLVM_BUILD_DIR
=
/
usr/local/
export
LLVM_BUILD_DIR
=
/
home/twiga/clang-7.0.0/
# The path where you are building systemc-clang
export
SYSTEMC_CLANG_BUILD_DIR
=
/home/anirudh/Programs/systemc-clang-dev/build
export
SYSTEMC
=
/home/twiga/sw/systemc-2.3.3/
export
SYSTEMC_CLANG_BUILD_DIR
=
/home/twiga/code/systemc-clang-build/
LLVMCOMPONENT
=
cppbackend
RTTIFLAG
=
-fno-rtti
LLVMCONFIG
=
$LLVM_BUILD_DIR
/bin/llvm-config
export
LLVM_CXX_FLAGS
=
`
$LLVMCONFIG
--cxxflags
`
#export LLVM_CXX_FLAGS=`$LLVMCONFIG --cxxflags`
# The flags have changed
export
LLVM_CXX_FLAGS
=
'-I/home/twiga/$LLVM_BUILD_DIR/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS'
export
LLVM_CXX_FLAGS
=
"
$LLVM_CXX_FLAGS
-fvisibility-inlines-hidden"
export
LLVM_LIBS
=
`
$LLVMCONFIG
--libs
`
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