Skip to content

Commit

Permalink
Merge pull request #357 from scchan/remove_hcc_link2
Browse files Browse the repository at this point in the history
remove cyclic link to hcc/include
  • Loading branch information
whchung authored Jun 15, 2017
2 parents e82a7d7 + 4583622 commit 6329f79
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,6 @@ add_subdirectory(amp-conformance)
add_subdirectory(stl-test)
add_subdirectory(cmake-tests)

# create a "hcc" symlink in the include directory
# that points to itself so we could support
# include <hcc.hpp> and include<hcc/hcc.hpp>
execute_process(COMMAND ln -sf ../include hcc
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/include)

# create documentation
configure_file(
${PROJECT_SOURCE_DIR}/lib/doxygen_config.in
Expand Down
1 change: 1 addition & 0 deletions hcc_config/hcc_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ void cxxflags(void) {
std::cout << " -I" << p << "/include";
} else {
std::cout << " -I" << get_path(path_hcc_include);
std::cout << " -I" << CMAKE_ROCM_ROOT << "/include";
}
} else {
assert(0 && "Unreacheable!");
Expand Down
2 changes: 2 additions & 0 deletions hcc_config/hcc_config.hxx.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

#define CMAKE_INSTALL_LIB "@CMAKE_INSTALL_LIBDIR@"

#define CMAKE_ROCM_ROOT "@ROCM_ROOT@"

#define CMAKE_GTEST_INC_DIR "@PROJECT_SOURCE_DIR@/utils"
4 changes: 2 additions & 2 deletions lib/hsa/mcwamp_hsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#include <hsa/amd_hsa_kernel_code.h>
#include <hsa/hsa_ven_amd_loader.h>

#include <hcc/kalmar_runtime.h>
#include <hcc/kalmar_aligned_alloc.h>
#include "kalmar_runtime.h"
#include "kalmar_aligned_alloc.h"

#include <hc_am.hpp>

Expand Down
4 changes: 0 additions & 4 deletions packaging/debian/postinst.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ SOFTLINKS=(

do_softlinks() {

if [ ! -e $INSTALL_PATH/include/hcc ] ; then
ln -sf $INSTALL_PATH/include $INSTALL_PATH/include/hcc
fi

if [ $PACKAGE_NAME == "hcc_hsail" ] && [ -L "$ROCM_PATH/hcc" ] && [ $(readlink -f $ROCM_PATH/hcc) == "$ROCM_PATH/hcc-lc" ] ; then
return
fi
Expand Down

0 comments on commit 6329f79

Please sign in to comment.