Commit Graph

56 Commits

Author SHA1 Message Date
Thomas Pöchtrager
f51b758db4 Clang 3.8 adjustments
... and while I am already there also update the copyright years
2016-02-27 09:40:10 +01:00
Thomas Pöchtrager
a845375e02 Wrapper: Remove '-march=native' to hopefully fix #54 2015-11-02 19:12:46 +01:00
Thomas Pöchtrager
0ba6a543dd Misc wrapper changes:
* Cleanup
* xcrun: Add bitcode_strip to known Xcode tools
2015-10-28 21:15:54 +01:00
Thomas Pöchtrager
989c7f3b5f Improve '-stdlib=libc++' error message when a too old SDK is used (closes #52)
This just required to move some code around.
The appropriate error message was already there.

Before:

osxcross: error: targeted OS X version must be <= 10.6.0 (SDK)

After:

osxcross: error: libc++ requires Mac OS X SDK 10.7 (or later)
2015-10-28 20:32:10 +01:00
Thomas Pöchtrager
68cca0de16 Wrapper: Avoid some string operations 2015-10-28 20:24:52 +01:00
Thomas Pöchtrager
6aa6f7941b Implement #41 (wrapper part) 2015-10-04 21:12:01 +02:00
Thomas Pöchtrager
24753b8178 Cleanup: Remove the native Windows bits.
There will be no *native* Windows port of OSXCross anyway.
This does not affect Cygwin.
2015-10-04 18:02:07 +02:00
Thomas Pöchtrager
118d72e594 Implement workarounds for vanilla llvm-dsymutil compatibility 2015-09-24 21:10:34 +02:00
Thomas Pöchtrager
08414886fb Add llvm-dsymutil build script + re-add 7e9f85
This finally makes proper debugging possible
2015-08-31 21:02:38 +02:00
Thomas Pöchtrager
749d0b14c9 Do not create x86_64h '-gstdc++' symlinks
There is no x86_64h slice in GCC's libstdc++.
2015-08-29 13:23:52 +02:00
Thomas Pöchtrager
8d6d9e9444 Fix GCH/PCH test case 2015-08-29 12:56:40 +02:00
Thomas Pöchtrager
bae2a4ad82 Better PCH/GCH detection 2015-08-23 22:45:53 +02:00
Thomas Pöchtrager
5afdf2b471 Wrapper changes:
* Support for generating fat object files with gcc and '-foc-use-gcc-libstdc++'
  has been removed.

  This feature was not 100% correctly implemented; using multiple source files
  did not work, i.e.: 'o32-g++ -m32 -m64 a.cpp b.cpp' would have failed;
  And I refuse to implement that, instead I am removing all source file handling
  from the wrapper with this commit for simplicity.

  This feature should be implemented in the gcc driver instead.

  This does NOT affect clang's fat object file support, which is implemented in
  clang's darwin driver.

* '-oc-use-gcc-lib' has been renamed to '-foc-use-gcc-libstdc++'.

* Added support for '-stdc++' and '-gstdc++' compiler "shortcuts"

  o32-clang++ --> uses libstdc++ for <= 10.8 and libc++ for >= 10.9

  o32-clang++-libc++ --> uses the SDK's libc++
  o32-clang++-stdc++ --> uses the SDK's libstdc++
  o32-clang++-gstdc++ --> uses gcc's (build_gcc.sh) libstdc++

* Entirely rewrote the command line parser; the previous one wasn't very
  readable.

* Minor Readme Updates

* Added unit tests

* Removed OSXCROSS_C_STANDARD / OSXCROSS_CXX_STANDARD support

  I am no longer parsing -std=, so this feature has to be dropped.
  Setting the language standard via an env variable isn't a good idea anyway.

* Removed unneeded stuff

Other Changes:

* Version bump to 0.11
2015-08-22 23:15:27 +02:00
Thomas Pöchtrager
03e904d5f1 fix relocation issues 2015-08-21 23:32:37 +02:00
Thomas Pöchtrager
39b6994d97 minor fixes 2015-07-19 23:19:31 +02:00
Thomas Pöchtrager
29a5fee522 * add windows support via cygwin
* add openbsd and dragonfly support
* replace `` with $() in bash scripts
* misc other changes
2015-07-19 22:28:10 +02:00
Thomas Pöchtrager
56eba88a9b only create x86_64h symlinks when the 10.8 (or later) SDK is used #2
forgot to test it with 'rm -rf target'...
2015-06-27 20:40:13 +02:00
Thomas Pöchtrager
da2b8f25f5 xcrun:
* handle '-sdk' / 'SDKROOT' (env.) properly.
  e.g. 'xcrun -sdk /[...]/MacOSX10.6.sdk clang' will use
  the specified 10.6 SDK.

* never execute xcode tools outside target/bin even when
  a full path is specified.
  e.g. 'xcrun /usr/bin/gcc' will execute target/bin/<triple>-gcc.

other wrapper changes:

* implement 'OSXCROSS_SDKROOT' env. variable for 'xcrun -sdk'.

* error on '-arch x86_64h' + clang <= 3.4.
  clang <= 3.4 misinterprets x86_64h as x86_64.

* only create x86_64h symlinks when the 10.8 (or later) SDK
  is used.

other changes:

* misc fixes and cleanup
2015-06-27 19:01:56 +02:00
Thomas Pöchtrager
c1e2c3a6d6 build.sh: ignore directories in tarballs/ (#37)
build.sh, tools.sh: add UNATTENDED option (#37)
xcrun.cpp: make local functions static
2015-06-21 19:35:09 +02:00
Thomas Pöchtrager
54d6ae9172 osxcross-man:
* use MANPATH environment variable instead of --manpath for more portability
* add (build_gcc.sh) gcc man pages
2015-06-21 17:18:51 +02:00
Thomas Pöchtrager
3e46f6cc32 add 'osxcross-man' - man page tool 2015-06-21 14:07:19 +02:00
Thomas Pöchtrager
b8594af6a8 add codelite project 2015-06-21 11:49:11 +02:00
Thomas Pöchtrager
02e1cb2a9e add a minimalistic implementation of xcrun 2015-06-21 11:46:01 +02:00
Thomas Pöchtrager
7734f4f0ed Revert "wrap dsymutil to llvm-dsymutil (#1)"
This reverts commit 7e9f856e6a.

it's too early, llvm-dsymutil still has a lot of issues
2015-06-13 11:06:29 +02:00
Thomas Pöchtrager
7e9f856e6a wrap dsymutil to llvm-dsymutil (#1) 2015-06-13 09:55:29 +02:00
Thomas Pöchtrager
f5aaf9faf9 fix for #34 2015-05-30 21:04:51 +02:00
Thomas Pöchtrager
8543a46c6c wrapper:
* minor fixes
* prepare for unit tests
2015-05-03 21:59:40 +02:00
Thomas Pöchtrager
9033b6b847 wrapper:
* improve and colorize warning/error/debug/info messages
* add include path warnings for /usr/include and /usr/local/include
other changes:
* bump version to 0.10
2015-05-02 21:49:23 +02:00
Thomas Pöchtrager
75e11afda9 remove no longer needed '-Xclang -fdefine-sized-deallocation' 2015-04-19 16:01:14 +02:00
Thomas Pöchtrager
86b2ab7052 osxcross-env: remove obsolete LD_LIBRARY_PATH 2015-02-23 21:19:34 +01:00
Thomas Pöchtrager
7310cc3a61 update for another -fdefine-sized-deallocation change 2015-02-21 18:51:45 +01:00
Thomas Pöchtrager
c180b6ac24 -fdef-sized-delete -> -fdefine-sized-deallocation 2015-02-19 20:34:06 +01:00
Thomas Pöchtrager
9264fa6ead work around a recent clang change 2015-02-17 19:51:17 +01:00
Thomas Pöchtrager
cb5b96dd1e gcc: always pass -no_compact_unwind to the linker + some cleanup 2015-02-08 10:42:02 +01:00
Thomas Pöchtrager
c375631ff4 update copyright years 2015-02-08 10:27:26 +01:00
Thomas Pöchtrager
5a217484ec add osxcross-macports - a minimalistic macports packet manager for 16.000+ binary packages 2014-12-24 10:52:24 +01:00
Thomas Pöchtrager
8c0ca406b9 add OSXCROSS_GCC_NO_STATIC_RUNTIME option + cleanup 2014-12-24 09:54:27 +01:00
Thomas Pöchtrager
44d7d0d07a make x86_64h default to 10.8 instead of 10.9 2014-11-09 18:04:29 +01:00
Thomas Pöchtrager
7f69e4fa98 ensure '-mmacosx-version-min' / MACOSX_DEPLOYMENT_TARGET is >= 10.8 for x86_64h 2014-11-09 17:41:45 +01:00
Thomas Pöchtrager
28436035a5 clean up the symlinking code a little bit 2014-09-28 20:46:38 +02:00
Thomas Pöchtrager
adc32dd2e7 pkg-config wrapper: move setenv() out of the env var loop 2014-09-27 22:42:53 +02:00
Thomas Pöchtrager
7db4705be9 also create a pkg-config symlink for x86_64h 2014-09-27 20:24:37 +02:00
Thomas Pöchtrager
655d3e1703 update changelog 2014-09-27 20:06:30 +02:00
Thomas Pöchtrager
a8fdaa3ab2 add pkg-config wrapper 2014-09-27 19:45:49 +02:00
Thomas Pöchtrager
e7b643d9bd adjustments to allow extracting the sdk on linux (xcode 4.2 only) 2014-09-27 14:35:42 +02:00
Thomas Pöchtrager
a34ce76854 misc fixes 2014-09-27 10:07:15 +02:00
Thomas Pöchtrager
0d9ba01d5b add support for the 10.10 SDK (DP1)
get rid of bc dependency
2014-09-13 15:32:42 +02:00
Thomas Pöchtrager
270f6d73f6 add support for new x86_64h architecture (haswell)
add support for multiple -arch flags with gcc (and clang + -oc-use-gcc-libs)
fix an unwind issue with -oc-use-gcc-libs + -mmacosx-version-min <= 10.5
update changelog
2014-09-13 15:32:42 +02:00
Thomas Pöchtrager
413c33a5e9 split the wrapper into multiple files + some generic wrapper cleanups 2014-09-13 15:32:42 +02:00
Thomas Pöchtrager
f1c5d5368d add a workaround for a glibc 2.20 bug 2014-09-11 00:58:44 +02:00