Skip to content

Allow the user to pass arbitrary C flags (on all platforms) - #665

Open
julie-is-late wants to merge 1 commit into
JuliaLang:masterfrom
julie-is-late:c_defines_2
Open

Allow the user to pass arbitrary C flags (on all platforms)#665
julie-is-late wants to merge 1 commit into
JuliaLang:masterfrom
julie-is-late:c_defines_2

Conversation

@julie-is-late

Copy link
Copy Markdown

Since PC.jl now exposes c_driver_program which allows the users to
specify their own C wrapper program, it would be nice to be able to pass
in more variables which might be best defined at build time.

Currently this functionality is effectively limited to Linux as
specifying $JULIA_CC will prevent PC.jl from inferring gcc.exe from
the relative mingw installation.

@julie-is-late

Copy link
Copy Markdown
Author

Replaces #652 to no longer require a keyword argument.

@julie-is-late
julie-is-late force-pushed the c_defines_2 branch 2 times, most recently from dce0653 to 80ebaa2 Compare February 12, 2022 02:55
Since PC.jl now exposes `c_driver_program` which allows the users to
specify their own C wrapper program, it would be nice to be able to pass
in more variables which might be best defined at build time.

Currently this functionality is effectively limited to Linux as
specifying $JULIA_CC will prevent PC.jl from inferring gcc.exe from
the relative mingw installation.
@julie-is-late

Copy link
Copy Markdown
Author

Apologies for the commit spam. Sleepy brain forgot to activate the project before running the tests and was very confused about why it was failing remotely.

@codecov

codecov Bot commented Feb 12, 2022

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.08%. Comparing base (94fdba2) to head (3bd3fa1).
⚠️ Report is 176 commits behind head on master.

Files with missing lines Patch % Lines
src/PackageCompiler.jl 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #665      +/-   ##
==========================================
+ Coverage   94.14%   95.08%   +0.94%     
==========================================
  Files           2        2              
  Lines         461      468       +7     
==========================================
+ Hits          434      445      +11     
+ Misses         27       23       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@julie-is-late julie-is-late changed the title Allow the user to define arbitrary C variables (on all platforms) Allow the user to pass arbitrary C flags (on all platforms) Feb 12, 2022
@sjkelly

sjkelly commented Mar 18, 2024

Copy link
Copy Markdown
Collaborator

Also see:
#920

In #929 I am attempting to make a config struct, which seems like a more composable and streamlined way to to this.

@julie-is-late

Copy link
Copy Markdown
Author

That’s a much better way to organize it in general, so having this covered in that would be fantastic.

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.

2 participants