Skip to content

build(win,msvc): /guard:cf and /DYNAMICBASE options do not work #6118

@hyoklee

Description

@hyoklee

Use these options on Windows:

 -DCMAKE_C_FLAGS="/guard:cf" -DCMAKE_CXX_FLAGS="/guard:cf" -DCMAKE_EXE_LINKER_FLAGS="/DYNAMICBASE" -DCMAKE_SHARED_LINKER_FLAGS="/DYNAMICBASE"

The following build errors occur:

D:\a\actions\actions\test\atomic_reader.c(37,1): error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\a\actions\actions\build\test\atomic_reader.vcxproj]
D:\a\actions\actions\test\atomic_writer.c(40,1): error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\a\actions\actions\build\test\atomic_writer.vcxproj]

Ref: https://my.cdash.org/viewBuildError.php?buildid=3260322

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

On-Deck

Relationships

None yet

Development

No branches or pull requests

Issue actions