Skip to content

Conversation

@grendello
Copy link
Contributor

Context: #10
Context: 9d342d5
Context: dotnet/android#8806 (comment)

Revert the portion of 9d342d5 which modified the way command-line
arguments are parsed. The cxxopt C++ library that was used turns out
not to support some GNU-style options (e.g. -mfpu=vpf3) which breaks
the MonoAOT compiler that uses them.

Instead, copy getopt.c (BSD 2-clause + MIT/X11 licenses) and
getopt.h (Public Domain license) implementations from the MinGW
project and use getopt across all platforms.

Additionally, fix generation of the artifact package by making sure that
all the executable files are, in fact, executable by setting the correct
permissions.

Context: #10
Context: 9d342d5
Context: dotnet/android#8806 (comment)

Revert the portion of 9d342d5 which modified the way command-line
arguments are parsed.  The `cxxopt` C++ library that was used turns out
not to support some GNU-style options (e.g. `-mfpu=vpf3`) which breaks
the MonoAOT compiler that uses them.

Instead, copy `getopt.c` (BSD 2-clause + MIT/X11 licenses) and
`getopt.h` (Public Domain license) implementations from the MinGW
project and use `getopt` across all platforms.

Additionally, fix generation of the artifact package by making sure that
all the executable files are, in fact, executable by setting the correct
permissions.
@grendello grendello requested review from jonpryor and pjcollins March 14, 2024 09:32
@jonpryor jonpryor merged commit 534baa2 into main Mar 14, 2024
@jonpryor jonpryor deleted the dev/grendel/use-getopt branch March 14, 2024 10:25
grendello added a commit that referenced this pull request Apr 2, 2024
* main:
  Back to wide strings on Windows + magic encantations (#22)
  [ci] Use managed identity for API Scan (#21)
  Fix `as.exe` crash on Windows (#20)
  Partially revert 9d342d5 (#19)
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