Skip to content

Commit 2f1b83d

Browse files
committed
Add enviroment variable to disable default flags: CRATE_CC_NO_DEFAULTS
1 parent 1bb4269 commit 2f1b83d

File tree

2 files changed

+234
-226
lines changed

2 files changed

+234
-226
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ number of different environment variables.
7777
certain `TARGET`s, it also is assumed to know about other flags (most
7878
common is `-fPIC`).
7979
* `AR` - the `ar` (archiver) executable to use to build the static library.
80+
* `CRATE_CC_NO_DEFAULTS` - the default compiler flags may cause conflicts in some cross compiling scenarios. Setting this variable will disable the generation of default compiler flags.
8081

8182
Each of these variables can also be supplied with certain prefixes and suffixes,
8283
in the following prioritized order:

0 commit comments

Comments
 (0)