Skip to content

Commit

Permalink
removing include directory in build
Browse files Browse the repository at this point in the history
  • Loading branch information
PrasannaLanka committed Apr 8, 2024
1 parent 171cd47 commit f76a07b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Manylinux2014_Compliant_Source/pkg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cd ..
cmake -DCMAKE_BUILD_TYPE=Release .. && make -j"$(nproc)" && make install

cd ..
cp build/include/vocabulary.h Manylinux2014_Compliant_Source/pkg/ir2vec/
cp build/vocabulary.h Manylinux2014_Compliant_Source/pkg/ir2vec/
cp src/include/utils.h Manylinux2014_Compliant_Source/pkg/ir2vec/
cp build/src/version.h Manylinux2014_Compliant_Source/pkg/ir2vec/
bash Manylinux2014_Compliant_Source/pkg/regen-oracle.sh
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

configure_file (./include/version.h.cmake version.h @ONLY)
include_directories(./include ${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_BINARY_DIR}/include)
include_directories(${CMAKE_BINARY_DIR})
set(commonsrc FlowAware.cpp Symbolic.cpp utils.cpp)
set(libsrc libIR2Vec.cpp ${commonsrc})
set(binsrc CollectIR.cpp IR2Vec.cpp)
option(LLVM_IR2VEC "where to enable IR2Vec as subproject for LLVM" OFF)
execute_process(
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/include
COMMAND bash generate_vocabulary.sh ${CMAKE_BINARY_DIR}/include/vocabulary.h

COMMAND bash generate_vocabulary.sh ${CMAKE_BINARY_DIR}/vocabulary.h
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND echo "Vocabulary file generated."
)
Expand Down

0 comments on commit f76a07b

Please sign in to comment.