Skip to content

Commit

Permalink
labelling in asm is not working as is for clang, so I'm skiping it (n…
Browse files Browse the repository at this point in the history
…o idea is the right way, but it works)
  • Loading branch information
estebanlm committed May 4, 2016
1 parent 586e651 commit f271a97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platforms/iOS/vm/OSX/sqPlatformSpecific.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ extern const pthread_key_t tltiIndex;
# undef EXPORT
# define EXPORT(returnType) __attribute__((visibility("default"))) returnType
# if !defined(VM_LABEL)
# define VM_LABEL(foo) asm("\n.globl L" #foo "\nL" #foo ":")
# if !(defined(__clang__))
# define VM_LABEL(foo) asm("\n.globl L" #foo "\nL" #foo ":")
# else
# define VM_LABEL(foo) 0
# endif
# endif
#endif

Expand Down

0 comments on commit f271a97

Please sign in to comment.