mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
Update README.md
This commit is contained in:
parent
3c377fa9e9
commit
0df1bbd817
12
README.md
12
README.md
@ -55,25 +55,25 @@ on debian like systems you can run `apt-get build-dep gcc` to install them.
|
|||||||
|
|
||||||
### SDK DOWNLOAD LINKS: ###
|
### SDK DOWNLOAD LINKS: ###
|
||||||
|
|
||||||
### Usage Examples: ###
|
### USAGE EXAMPLES: ###
|
||||||
|
|
||||||
##### Let's say you want to compile a file called test.cpp, then you can do this by running: #####
|
##### Let's say you want to compile a file called test.cpp, then you can do this by running: #####
|
||||||
|
|
||||||
* Clang:
|
* Clang:
|
||||||
|
|
||||||
* 32 bit: `o32-clang test.cpp -O3 -o test` OR `i386-apple-darwinXX-clang test.cpp -O3 -o test`
|
* 32 bit: `o32-clang++ test.cpp -O3 -o test` OR `i386-apple-darwinXX-clang++ test.cpp -O3 -o test`
|
||||||
* 64 bit: `o64-clang test.cpp -O3 -o test` OR `x86_64-apple-darwinXX-clang test.cpp -O3 -o test`
|
* 64 bit: `o64-clang++ test.cpp -O3 -o test` OR `x86_64-apple-darwinXX-clang++ test.cpp -O3 -o test`
|
||||||
|
|
||||||
* GCC:
|
* GCC:
|
||||||
|
|
||||||
* 32 bit: `o32-gcc test.cpp -O3 -o test` OR `i386-apple-darwinXX-gcc test.cpp -O3 -o test`
|
* 32 bit: `o32-g++ test.cpp -O3 -o test` OR `i386-apple-darwinXX-g++ test.cpp -O3 -o test`
|
||||||
* 64 bit: `o64-gcc test.cpp -O3 -o test` OR `x86_64-apple-darwinXX-gcc test.cpp -O3 -o test`
|
* 64 bit: `o64-g++ test.cpp -O3 -o test` OR `x86_64-apple-darwinXX-g++ test.cpp -O3 -o test`
|
||||||
|
|
||||||
XX= the target version, you can find it out by running `osxcross-conf` and then see `TARGET`.
|
XX= the target version, you can find it out by running `osxcross-conf` and then see `TARGET`.
|
||||||
|
|
||||||
You can use the shorting `o32-...` or `i386-apple-darwin...` what ever you like more.
|
You can use the shorting `o32-...` or `i386-apple-darwin...` what ever you like more.
|
||||||
|
|
||||||
*I'll continue from now on with `o32-clang`, but remember you can simply replace it with `o32-gcc` or `i386-apple-darwin...`*
|
*I'll continue from now on with `o32-clang`, but remember you can simply replace it with `o32-gcc` or `i386-apple-darwin...`.*
|
||||||
|
|
||||||
##### Building Makefile based projects: #####
|
##### Building Makefile based projects: #####
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user