Skip to content

Explicit objcopy definition#2909

Merged
cincuranet merged 1 commit into
dotnet:mainfrom
cincuranet:nativeaot-objcopy
Feb 22, 2023
Merged

Explicit objcopy definition#2909
cincuranet merged 1 commit into
dotnet:mainfrom
cincuranet:nativeaot-objcopy

Conversation

@cincuranet

@cincuranet cincuranet commented Feb 22, 2023

Copy link
Copy Markdown
Contributor

Makes sure to use proper one when building the NativeAOT app.

@cincuranet cincuranet changed the title objcopy version Explicit objcopy definition Feb 22, 2023
@cincuranet
cincuranet marked this pull request as ready for review February 22, 2023 13:30
@cincuranet

Copy link
Copy Markdown
Contributor Author

cc @eerhardt

@LoopedBard3 LoopedBard3 left a comment

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.

Could you expand on what the additional '/p:ObjCopyName=objcopy' does? Taking a quick look online did not come up with anything specific.

@cincuranet

Copy link
Copy Markdown
Contributor Author

It's described here: dotnet/runtime#81517 (comment).

@LoopedBard3 LoopedBard3 left a comment

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.

LGTM

@cincuranet
cincuranet merged commit 0ee8f7e into dotnet:main Feb 22, 2023
@cincuranet
cincuranet deleted the nativeaot-objcopy branch February 22, 2023 18:38
@cincuranet cincuranet self-assigned this Feb 22, 2023
exename=EXENAME,
working_directory=sys.path[0])
precommands.execute(['/p:PublishAot=true', '/p:StripSymbols=true', '/p:IlcGenerateMstatFile=true'])
args = ['/p:PublishAot=true', '/p:StripSymbols=true', '/p:IlcGenerateMstatFile=true'] if iswin() else ['/p:PublishAot=true', '/p:StripSymbols=true', '/p:IlcGenerateMstatFile=true', '/p:ObjCopyName=objcopy']

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.

args = ['/p:PublishAot=true', '/p:StripSymbols=true', '/p:IlcGenerateMstatFile=true']
if not iswin():
	args.append('/p:ObjCopyName=objcopy')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants