Skip to content

[SR-2027] build-script -x fails during building of SwiftShims #44636

Open
@beccadax

Description

@beccadax
Previous ID SR-2027
Radar None
Original Reporter @beccadax
Type Bug
Environment

OS X 10.11.5 (15F34), MacBook Pro (Retina, 15-inch, Late 2013), Xcode Version 8.0 beta 2 (8S162m)

Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Bug, BuildScript, CMake
Assignee None
Priority Medium

md5: d1f70e4668dbe43b833dce4c9a7ef89a

Issue Description:

On my machine, utils/build-script -c -x fails with the error "Clang headers were not found" from stdlib/public/SwiftShims/CMakeLists.txt line 65.

Investigation showed that CMAKE_CFG_INTDIR contained xcodebuild-style $(...) variables which were not being substituted before the "if(EXISTS …)" call. The change at <beccadax@2db328fa48d90be530f2fa4cff1034b8bc2dc35d\> corrects this issue for me, although it feels a little hacky and I have zero CMake experience, so there may be a better solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.build-scriptArea → utils: The build scriptcmakeutilsArea: the build system and other accessory scripts under the "utils" directory

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions