Skip to content

Commit

Permalink
fix cgo error
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Yang authored and billbo-yang committed May 28, 2024
1 parent 88cec51 commit 07be449
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,12 @@ if(FIPS_SHARED)
add_custom_command(
TARGET crypto POST_BUILD
COMMAND ${GO_EXECUTABLE} run
${PROJECT_SOURCE_DIR}/util/fipstools/inject_hash/inject_hash.go
${PROJECT_SOURCE_DIR}/util/fipstools/inject_hash/go/inject_hash.go
-o $<TARGET_FILE:crypto> -in-object $<TARGET_FILE:crypto> ${INJECT_HASH_APPLE_FLAG}
# The DEPENDS argument to a POST_BUILD rule appears to be ignored. Thus
# go_executable isn't used (as it doesn't get built), but we list this
# dependency anyway in case it starts working in some CMake version.
DEPENDS ../util/fipstools/inject_hash/inject_hash.go
DEPENDS ../util/fipstools/inject_hash/go/inject_hash.go
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
endif()
Expand Down
2 changes: 1 addition & 1 deletion crypto/fipsmodule/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ if(FIPS_DELOCATE)
set_target_properties(bcm_hashunset PROPERTIES LINKER_LANGUAGE C)

go_executable(inject_hash
boringssl.googlesource.com/boringssl/util/fipstools/inject_hash)
boringssl.googlesource.com/boringssl/util/fipstools/inject_hash/go)
add_custom_command(
OUTPUT bcm.o
COMMAND ./inject_hash -o bcm.o -in-archive $<TARGET_FILE:bcm_hashunset>
Expand Down
File renamed without changes.

0 comments on commit 07be449

Please sign in to comment.