Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

[x86/Linux] fix and add for x86 cmake configuration#8219

Merged
janvorli merged 1 commit into
dotnet:masterfrom
seanshpark:x86brfs
Nov 22, 2016
Merged

[x86/Linux] fix and add for x86 cmake configuration#8219
janvorli merged 1 commit into
dotnet:masterfrom
seanshpark:x86brfs

Conversation

@seanshpark
Copy link
Copy Markdown

This patch will add x86 part for cross build

  • add x86 in build-rootfs and related cross files
  • add x86 parts in CMakeLists.txt to pass configuration
  • add required source files to pass configuration

@seanshpark
Copy link
Copy Markdown
Author

You can check with

sudo ./cross/build-rootfs.sh x86 xenial
./build.sh x86 cross configureonly

@jkotas
Copy link
Copy Markdown
Member

jkotas commented Nov 21, 2016

cc @janvorli

@seanshpark
Copy link
Copy Markdown
Author

cc @gkhanna79

// See the LICENSE file in the project root for more information.

#include "unixasmmacros.inc"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to use .intel_syntax noprefix for x86 like we do for AMD64 instead of using the default GAS syntax? It would be highly preferrable.

Comment thread src/debug/ee/wks/CMakeLists.txt Outdated
elseif(CLR_CMAKE_PLATFORM_ARCH_ARM64)
add_library_clr(cordbee_wks ${CORDBEE_SOURCES_WKS})
elseif(CLR_CMAKE_PLATFORM_ARCH_I386)
add_library_clr(cordbee_wks ${CORDBEE_SOURCES_WKS} ../${ARCH_SOURCES_DIR}/dbghelpers.S)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind changing the if as follows so that the same body doesn't get repeated three times?

if (CLR_CMAKE_PLATFORM_ARCH_AMD64 OR CLR_CMAKE_PLATFORM_ARCH_ARM OR CLR_CMAKE_PLATFORM_ARCH_I386)
  add_library_clr(cordbee_wks ${CORDBEE_SOURCES_WKS} ../${ARCH_SOURCES_DIR}/dbghelpers.S)
elseif()
.
.

This patch will add x86 part for cross build
- add x86 in build-rootfs and related cross files
- add x86 parts in CMakeLists.txt to pass configuration
- add required source files to pass configuration
@seanshpark
Copy link
Copy Markdown
Author

@janvorli , no problem, applied.

@janvorli janvorli merged commit d4b1a74 into dotnet:master Nov 22, 2016
@seanshpark seanshpark deleted the x86brfs branch November 22, 2016 23:01
sergign60 pushed a commit to sergign60/coreclr that referenced this pull request Dec 2, 2016
This patch will add x86 part for cross build
- add x86 in build-rootfs and related cross files
- add x86 parts in CMakeLists.txt to pass configuration
- add required source files to pass configuration
@karelz karelz modified the milestone: 2.0.0 Aug 28, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
)

This patch will add x86 part for cross build
- add x86 in build-rootfs and related cross files
- add x86 parts in CMakeLists.txt to pass configuration
- add required source files to pass configuration

Commit migrated from dotnet/coreclr@d4b1a74
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants