Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object files are created outside of "objects" directory in case source file paths start with a ".." #10

Closed
mthiede opened this issue May 14, 2010 · 3 comments

Comments

@mthiede
Copy link
Collaborator

mthiede commented May 14, 2010

If build dir is "./build", object files should be in "./build/objects".
If a source file is "../src/filex.c", the object file will be created in "./build/src/" instead of "./build/objects/src/".
It is probably necessary to protect against name clashes within the "objects" directory. I.e. if several "src" directories are referenced via relative paths, all starting with src (../src, ../../src, etc.) and containing files with the same names.

@ghost ghost assigned gizmomogwai Jun 9, 2011
@gizmomogwai
Copy link
Collaborator

example is needed

gizmomogwai added a commit that referenced this issue Jun 9, 2011
@gizmomogwai
Copy link
Collaborator

the example in examples/strange_dirs shows the problem. after building the project the objects of lazylib are in build/objects/src/* instead of build/objects/lazylib/???

├── build
│   ├── exes
│   │   └── main.exe
│   ├── libs
│   │   └── liblazy.a
│   └── objects
│       ├── main
│       │   ├── main.cpp.o
│       │   └── main.cpp.o.d
│       └── src
│           ├── test.cpp.o
│           └── test.cpp.o.d
├── lazyLib
│   └── project.rb
├── main
│   ├── main.cpp
│   └── project.rb
├── Rakefile.rb
└── src
    └── test.cpp

gizmomogwai added a commit that referenced this issue Jun 9, 2011
@gizmomogwai
Copy link
Collaborator

current version works (see examples/strange_dirs)

  .
  ├── build
  │   ├── libs
  │   │   └── liblazy.a
  │   ├── main.exe
  │   └── objects
  │       ├── lazy
  │       │   └── _
  │       │       └── src
  │       │           ├── test.o
  │       │           └── test.o.d
  │       └── main
  │           ├── main.o
  │           └── main.o.d
  ├── lazyLib
  │   └── project.rb
  ├── main
  │   ├── main.cpp
  │   └── project.rb
  ├── Rakefile.rb
  └── src
      └── test.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants