FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

vitacy/libobjc2: Objective-C runtime library intended for use with Clang. · GitHub

forked from gnustep/libobjc2
 
 

Latest commit

 

History

1,307 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNUstep Objective-C Runtime

Build on win10 with clang

install visual studio 2019 with c++ clang cmake support via visual studio installer

open a cmd shell "x64 Native Tools Command Prompt for VS 2019" from start menu

cd to the source code dir

run build-win10.bat it will install to build/install dir

set CC=clang.exe
set CXX=clang++.exe
set RUNTIME_VERSION=gnustep-2.0

set Install_prefix=%cd%\build\install
MD %Install_prefix%
cmake -B build .  -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=%CC% -DCMAKE_CXX_COMPILER=%CXX% -DCMAKE_MODULE_LINKER_FLAGS=%LDFLAGS% -DTESTS=0 -G Ninja  -DCMAKE_INSTALL_PREFIX=%Install_prefix%
ninja -C build
ninja -C build install

test objc using clang

clang test.m -o test.exe -fblocks -fobjc-runtime=gnustep-2.0 -fuse-ld=lld-link -l objc
//test.m
//OBJCFLAGS=-fblocks -fobjc-runtime=gnustep-2.0 -fuse-ld=lld-link -l objc
#include <stdio.h>
__attribute__((objc_root_class)) @interface Test
  + (void) test;
@end
@implementation Test
  + (void) test {
    printf("Hello World!\n");
  }
@end
int main() {
  [Test test];
  return 0;
}

About

Objective-C runtime library intended for use with Clang.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL