Skip to content

Commit

Permalink
Fix install file
Browse files Browse the repository at this point in the history
  • Loading branch information
Heffan Henry committed Nov 29, 2021
1 parent 4e89ee9 commit b2bc025
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ jobs:
steps:
- checkout
- run: |
cat act/lang/.gitignore
apt-get -q update -y
apt-get -q install -y libedit-dev zlib1g-dev m4 build-essential
apt-get -q install -y libedit-dev zlib1g-dev m4 build-essential cmake
mkdir install
export VLSI_TOOLS_SRC=`pwd`
export ACT_HOME=$VLSI_TOOLS_SRC/install
Expand All @@ -24,7 +25,7 @@ jobs:
- run: |
yum install -y 'dnf-command(config-manager)'
yum config-manager --set-enabled powertools -y
yum install -y gcc gcc-c++ diffutils make libedit-devel zlib-devel m4
yum install -y gcc gcc-c++ diffutils make libedit-devel zlib-devel m4 cmake
mkdir install
export VLSI_TOOLS_SRC=`pwd`
export ACT_HOME=$VLSI_TOOLS_SRC/install
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ include_directories(${CMAKE_BINARY_DIR}/)

# set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -std=c++20 -O2 -g -fsanitize=undefined -march=native -DARCH_x86_64 -DOS_linux5_14_9 -DBASEOS_linux" # -Wall -Wpedantic -Werror"
"${CMAKE_CXX_FLAGS} -std=c++14 -O2 -g -fsanitize=undefined -march=native -DARCH_x86_64 -DOS_linux5_14_9 -DBASEOS_linux" # -Wall -Wpedantic -Werror"
)

set(CMAKE_EXE_LINKER_FLAGS "-ldl")
Expand Down
1 change: 1 addition & 0 deletions act/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ set_target_properties(
set_target_properties(ActCommon PROPERTIES OUTPUT_NAME actcommon)

install (TARGETS ActCommon
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include/act/common
)
4 changes: 2 additions & 2 deletions act/lang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ add_custom_command(
lang.m4
namespaces.m4
types.m4
expr.c
expr.h)

add_library(
ActLang
act_walk.extra.h
lang.h
expr.h
${CMAKE_CURRENT_BINARY_DIR}/act_parse_id.h
${CMAKE_CURRENT_BINARY_DIR}/act_parse.h
${CMAKE_CURRENT_BINARY_DIR}/act_parse_int.h
Expand All @@ -58,6 +56,7 @@ add_library(
warn.def
act_id.h
inline.h
expr.h
expr.c
path.c
expr_extra.c
Expand Down Expand Up @@ -97,6 +96,7 @@ set_target_properties(ActLang PROPERTIES OUTPUT_NAME actlang)

add_subdirectory(test)
install (TARGETS ActLang
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include/act/lang
)
Expand Down
1 change: 1 addition & 0 deletions act/lang/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*
**************************************************************************
*/

#ifndef __EXPR_H__
#define __EXPR_H__

Expand Down
1 change: 1 addition & 0 deletions act/miniscm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ set_target_properties(
set_target_properties(ActMiniScheme PROPERTIES OUTPUT_NAME actscm)

install (TARGETS ActMiniScheme
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include/act/miniscm
)
1 change: 1 addition & 0 deletions act/passes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ set_target_properties(ActPasses PROPERTIES OUTPUT_NAME actpass)


install (TARGETS ActPasses
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include/act/passes
)

0 comments on commit b2bc025

Please sign in to comment.