File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3855,8 +3855,12 @@ function(build_awssdk)
38553855 prepare_fetchcontent ()
38563856 set (BUILD_DEPS OFF )
38573857 set (BUILD_TOOL OFF )
3858- message ("XXX: ${CMAKE_ASM_FLAGS} " )
3859- if (CMAKE_CXX_FLAGS MATCHES "-ffile-prefix-map=" AND NOT CMAKE_ASM_FLAGS MATCHES "-ffile-prefix-map=" )
3858+ # This is for aws-lc. -ffile-prefix-map is needed for reproducible
3859+ # builds. If ASM flags doesn't have --file-prefix-map, it may
3860+ # produce different binaries. Only aws-lc uses assembler. So this is
3861+ # for aws-lc.
3862+ if (CMAKE_CXX_FLAGS MATCHES "-ffile-prefix-map=" AND NOT CMAKE_ASM_FLAGS MATCHES
3863+ "-ffile-prefix-map=" )
38603864 string (REGEX MATCH " -ffile-prefix-map=[^ ]+ " FFILE_PREFIX_MAP "${CMAKE_CXX_FLAGS} " )
38613865 string (APPEND CMAKE_ASM_FLAGS "${FFILE_PREFIX_MAP} " )
38623866 endif ()
You can’t perform that action at this time.
0 commit comments